Snow::Update
function · lighting · primitive
- Address
0x677ff0· 1558 bytes, up to0x678605- Signature
void __thiscall (Snow *this)- Meaning
- Retires snow packets, builds the lead vector, and opens, fills and closes the frame's packet
- Confidence
- verified, proof one
- Finding
- lighting/precipitation#snow
- Test
lighting::snow_exp2_arg_difftest,lighting::snow_exp2_blend_difftest,lighting::snow_field_lerp_difftest,lighting::snow_final_recip_difftest,lighting::snow_min_select_scale_difftest,lighting::snow_normalize_scale_difftest,lighting::snow_record_distance_difftest,lighting::snow_wind_deflect_difftest
Finding: Snow in lighting: precipitation
Snow emits K·P·x flakes a second, P = 14000 with shaders and 1300 without, its mist
2·max(x − 0.5, 0)·K·Q puffs, Q = 48 or 24. A flake starts like a drop with
a = (u − 0.5)·(2π − 5.934·x) − 1.57, s = (u − 0.5 + 5.985)·x + 0.015 and
vz = −x·r − 3.5x − 2, and moves by 1.75 times the player's velocity and by the camera eye;
with the unit flag set, the update first lowers the eye's height by a blend of the box height.
With shaders the flakes draw as points of size up to
24 through snowpoint.bls with blend 2, c_pointSize (−0.02, 0, 14) and c_zfade (−1/6, 13/3).
The derivation is in the doc.
Callers 1
- Snow::Render lighting
Callees 17
- DebugPrintStub unassigned
- EvaluateSplineTangent spline
- Vector3LengthSquared spline
- FastPow2 fastmath
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGUnit_C::GetSplinePoints objectlayer
- CGUnit_C::GetSplineField20 objectlayer
- CGUnit_C::GetSplineField24 objectlayer
- SMemAlloc storm
- GetCameraPosition terrain
- SecondsToWeatherTicks lighting
- WeatherTicksToSeconds lighting
- Snow::BakePacket lighting
- Snow::EmitFlakes lighting
- 0x67dd30 lighting
- 0x67e2b0 lighting
Calls and jumps by a bare address, from tables/calls.tsv.