DrawGlare
function · lighting · primitive
- Address
0x7e57e0· 812 bytes, up to0x7e5b0b- Meaning
- Draws a glare as an additive quad facing the eye
- Confidence
- verified, proof one
- Finding
- lighting/celestial#glare-draw
- Test
lighting::d7_vec3_sub_57e0_difftest
Finding: Glare draw in lighting: sun, moons and stars
0x6d48c0 updates and draws the sun glare, then the moon glare, when the sky is on; the world
frame calls it late, after the world scene and the liquid particulates (0x483740). A glare draws when enabled with a nonzero alpha byte: a
camera-facing quad of half-size 0.5 times its scale at its direction, flat colour +0x18, its
texture, the device's blend 3 (models/render#material-state), lighting, fog and depth writes off,
in the depth range [0.995, 1.0].
The derivation is in the doc.
Callers 1
- DrawGlares lighting
Callees 17
- GetTextureDeviceObject gx
- SetVector3 spline
- GxRsSet gx
- GxRsSetObject gx
- GxRsPush gx
- GxRsPop gx
- GxBuildVertices gx
- SetDrawIndices gx
- GxPrimRenderOne gx
- SetDeviceViewport gx
- GetDeviceViewport gx
- GetDeviceView gx
- 0x58b210 gx
- 0x58b220 gx
- GetLightState lighting
- ScaleMatrixRows cmath
- BuildGlareBasis lighting
Calls and jumps by a bare address, from tables/calls.tsv.