benilla-re systems structs docs

BuildGlareBasis

function · lighting · primitive

Address
0x7e5670 · 260 bytes, up to 0x7e5773
Meaning
Normalizes a direction and builds two axes perpendicular to it
Confidence
verified, proof one
Finding
lighting/celestial#glare-draw
Test
lighting::d7_basis_from_normal_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 3

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.