Sand::DrawShader
function · lighting · primitive
- Address
0x67a1b0· 869 bytes, up to0x67a514- Signature
void __thiscall (Sand *this)- Meaning
- Draws the started sand packets as points through sand.bls
- Confidence
- inferred
- Finding
- lighting/precipitation#sand
- Test
lighting::mist_tex_scroll_difftest
Finding: Sand in lighting: precipitation
Sand emits K·P·x grains a second, P = 32000 with shaders and 6000 without, and its mist K·Q·x
puffs, Q = 64 or 32, with no threshold. A grain starts at 0.85 to 1.0 of the box's length and
anywhere across and up it, with a = (u − 0.5)·0.349 − 1.57, a speed of (u − 0.5)·2/3 + 18.667
and a third term (u − 0.5)/6 + 0.833, all turned by the heading about the vertical. It draws as
points through sand.bls.
The derivation is in the doc.
Callers 1
- Sand::Render lighting
Callees 20
- GxRsSetFloat gx
- GxRsSet gx
- GxRsSetObject gx
- GxRsPush gx
- GxRsPop gx
- GxDeviceCaps gx
- GxCapsDrawRect gx
- GxVertexBufBind gx
- GxPrimRenderOne gx
- 0x58b0a0 gx
- GetDeviceView gx
- 0x58b3c0 gx
- 0x58b3e0 gx
- 0x58b430 gx
- 0x58b470 gx
- 0x58b4b0 gx
- 0x58b530 gx
- WeatherTicksToSeconds lighting
- GetLightState lighting
- MultiplyMatrix4 cmath
Calls and jumps by a bare address, from tables/calls.tsv.