Now: Far papers draw stage
sprite slot 42 from sprites.json:
cut-out (alpha > 254/255, no depth write), 8
× 8 frames, frame = variant × 32 + age mod 32,
scale 0.8; tint INFERRED: the
global light colour 0x1405a86b0 read as light
set 0’s directional colour. Without
sprites.json the old white quad
stays
Now: Built: the storm
intensity runs on the launch-time 30 Hz tick
counter (PdClock: zeroed when the engine starts,
never reset at a stage load, wraps at 4 000
000): on for the first 83.5 s, then 105 s off /
105 s on. --clock=N sets the
counter for repeatable renders
Where:pd_stagefx.gd storm_clock,
pd_clock.gd
Lead: our “device setup” is
the engine start; the game’s is somewhat earlier
in boot (seconds)
Now: The 10 near papers:
slot 43, alpha blend, spawn / update as decoded
(FORMATS “Near papers”), positions around the
eye. The storm sphere
(PdSandSphere): MD00 pair 70’s
model at the drawn eye every frame, model size,
model Z along the storm wind. INFERRED: the
look-at’s cross-product order and its fallback
axis when
Where: wind.y
Lead: ≥ 0.99 (both only
turn the texture about the wind axis; st02’s
wind is level). The storm clock stays in
pd_stagefx.gd (the skyglow run owns
it)
Now:PdSandSphere.shader(): alpha blend,
no depth write, depth test and back-face culling
on, unshaded, no fog; out = clamp(vertex colour,
−1, 1) × (tex0(uv + 8·t·r0) + tex1(uv +
8·t·r1)), alpha × the storm intensity, t =
PdClock. INFERRED: the alpha-test reference
(misc_constant.x) and the layers’
alphakill switches are not traced,
fully clear pixels are skipped; the second
render target (blend_colour, glow)
is not written
Where:pd_sand_sphere.gd
Lead: the material bind’s
alpha reference and alphakill writes; material
flag 0x2000 set by the sphere’s init (meaning
not read); Xbox side not compared
Thunder sounds
(st12, st06)
Status: MISSING
(lightextras)
Now: Flash steps counted,
no sound
Where:pd_stagefx.gd
Lead: decoded (docs
11-10 audio): stage bank cue = random 0..2,
+ 3 on the highway, at the strike position
(FORMATS “Stage sounds”); the stage banks are
converted (ambient build 11-14); play
the cue from pd_stagefx.gd
thunder_tick