Snow::SpawnFlake
function · lighting · primitive
- Address
0x677750· 1516 bytes, up to0x677d3b- Meaning
- Seeds one snow flake: its velocity, its start on the box top and its lead
- Confidence
- verified, proof one
- Finding
- lighting/precipitation#snow
- Test
lighting::snowfl_add_base_difftest,lighting::snowfl_add_offset_difftest,lighting::snowfl_angle1_difftest,lighting::snowfl_cam_global_difftest,lighting::snowfl_cell_delta_difftest,lighting::snowfl_drift_difftest,lighting::snowfl_drift_vel_difftest,lighting::snowfl_lifetime_difftest,lighting::snowfl_mtx_scale_difftest,lighting::snowfl_phase_difftest,lighting::snowfl_pos_seed_difftest,lighting::snowfl_sincos_difftest,lighting::snowfl_sky_rot_difftest,lighting::snowfl_sub_drift_difftest,lighting::snowfl_vel_drift_scale_difftest,lighting::snowfl_vel_flag_scale_difftest,lighting::snowfl_vel_z_scale_difftest,lighting::snowfl_world_scale_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::EmitFlakes lighting
Callees 7
- NTempest::CRandom::uint32 random
- SetVector3 spline
- Vector3LengthSquared spline
- LerpClamped lighting
- GetWeatherGrid lighting
- TransformPoint34Rows cmath
- RotateMatrix cmath
Calls and jumps by a bare address, from tables/calls.tsv.