QueryGlareOcclusion
function · lighting · primitive
- Address
0x7e5220· 1099 bytes, up to0x7e566a- Meaning
- Draws a glare's occlusion query and reads its result
- Confidence
- inferred
- Finding
- lighting/celestial#draw-occlusion
- Test
lighting::d7_5220_bbox_area_difftest,lighting::d7_5220_coverage_difftest,lighting::d7_5220_one_minus_c_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
- GetGlareOcclusion lighting
Callees 22
- SetVector3 spline
- GxRsSet gx
- GxRsPush gx
- GxRsPop gx
- GxBuildVertices gx
- SetDrawIndices gx
- GxPrimRenderOne gx
- 0x58aeb0 gx
- 0x58aed0 gx
- 0x58af30 gx
- SetDeviceViewport gx
- SetDeviceView gx
- GetDeviceViewport gx
- GetDeviceView gx
- 0x58b200 gx
- 0x58b220 gx
- GxXformSetIdentity gx
- ProjectPointsToWindow gxumath
- BuildDiscQuad lighting
- GetLightState lighting
- MultiplyMatrix4 cmath
- BuildGlareBasis lighting
Calls and jumps by a bare address, from tables/calls.tsv.