Mists::Render
function · lighting · primitive
- Address
0x67ae20· 2262 bytes, up to0x67b6f5- Signature
void __thiscall (Mists *this)- Meaning
- Spawns, moves and fades a mist's puffs and draws them as quads in the fog colour
- Confidence
- verified, proof one
- Finding
- lighting/precipitation#mist
- Test
lighting::mistr_cell_lerp_difftest,lighting::mistr_cell_round_difftest,lighting::mistr_color_repack_difftest,lighting::mistr_corner_add_difftest,lighting::mistr_corner_basis_difftest,lighting::mistr_corner_dist_difftest,lighting::mistr_drift_clamp_difftest,lighting::mistr_fade_mag_difftest,lighting::mistr_half_scale_difftest,lighting::mistr_hash_count_difftest,lighting::mistr_life_span_difftest,lighting::mistr_node_accum_difftest,lighting::mistr_phase_advance_difftest,lighting::mistr_phase_wrap_difftest,lighting::mistr_ramp_product_difftest,lighting::mistr_spacing_recip_difftest,lighting::mistr_time_accum_difftest
Finding: Mist in lighting: precipitation
Each effect's mist is 128 puffs, each a camera-facing quad of size 12 in the scene's fog colour. A rate accumulator gains rate·frame seconds, capped at 128; a free puff spawns while it holds 1, born at a random point of the frame. A puff moves at (u − 0.5)·spread + speed along (u − 0.5)·0.349 − 1.57 turned by the heading: speed 5.0, 9.0 or 15.0 and spread 1.2, 3.0 or 4.5 for rain, snow and sand. It lives (u − 0.5)·0.3 + 2.7 s, fading in over its first 0.4 s and out over its last 0.4 s, and is invisible within 6 yards of the camera, full beyond 18.
The derivation is in the doc.
Callers 3
- Rain::Render lighting
- Snow::Render lighting
- Sand::Render lighting
Callees 21
- GetTextureDeviceObject gx
- NTempest::CRandom::uint32 random
- SetVector3 spline
- GxRsSet gx
- GxRsSetObject gx
- GxRsPush gx
- GxRsPop gx
- GxBufLock gx
- GxBufUnlock gx
- GxBufCreate gx
- GxDeviceCaps gx
- GxVertexBufBind gx
- PassBufferToDevice gx
- GxPrimRenderOne gx
- GetDeviceView gx
- WeatherTicksToSeconds lighting
- Mists::SpawnPuff lighting
- SetFadeRamp lighting
- EvalFadeRamp lighting
- EvalFadeRampInverse lighting
- GetLightState lighting
Calls and jumps by a bare address, from tables/calls.tsv.