benilla-re systems structs docs

TraceGlareOcclusion

function · lighting · primitive

Address
0x7e50a0 · 380 bytes, up to 0x7e521b
Meaning
Traces the scene between the eye and a glare for occlusion
Confidence
inferred
Finding
lighting/celestial#draw-occlusion
Test
lighting::d7_50a0_normalize_half_difftest

Finding: Draw occlusion in lighting: sun, moons and stars

The device test draws the glare's quad in the depth range [0.995, 1.0] with render states 0x13, 0x12, 0xf and 0xe at 0 and returns a count read back from the device divided by the quad's projected area, at most 1, and 0 when the area is at most 1 or the glare's +0x38 is set. The world trace returns 0 when a trace from the eye along the glare's direction to the far clip hits, else 1 when a second test along the same line finds nothing.

The derivation is in the doc.

Callers 1

Callees 4

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