DrawStars
function · lighting · primitive
- Address
0x7e6120· 152 bytes, up to0x7e61b7- Meaning
- Draws the star model when its alpha byte is 2 or more
- Confidence
- verified, proof one
- Finding
- lighting/celestial#stars
- Test
lighting::d7_star_byte_norm_difftest
Finding: Stars in lighting: sun, moons and stars
The stars are the model 0x881c70 at the camera eye with alpha a/255, a = trunc(track·254 + 1)
from the star track at the time of day, drawn only when a > 1 and advanced by the milliseconds
since its last draw.
The derivation is in the doc.
Callers 1
- DrawSky lighting
Callees 7
- OsGetAsyncTimeMs core
- M2SceneAdvance models
- M2SceneAnimateAndCollect models
- M2SceneDraw models
- CM2Model::SetAnimated models
- CM2Model::SetVisible models
- CM2Model::SetAlpha models
Calls and jumps by a bare address, from tables/calls.tsv.