DrawDecalBatches
function · lighting · primitive
- Address
0x6d7480· 725 bytes, up to0x6d7754- Meaning
- Draws the collected world batches with a decal's texture transform
- Confidence
- inferred
- Finding
- lighting/shadows#projected-decals
- Test
lighting::sky_element_draw_scale_difftest
Finding: Projected decals in lighting: shadows
A decal is a box, a colour and a texture. The box gives two texture transforms: one maps the box's horizontal extent onto [0, 1] after a quarter turn, the other its height onto a fade coordinate. The draw tests the box against the view, sets the texture, the bias and the colour, and draws every collected world batch with the transform, as white with the colour's alpha or with the colour itself.
The derivation is in the doc.
Callers 2
- DrawWorldSpecialBatches terrain
- DrawDecal lighting
Callees 18
- 0x481900 ui
- GxRsSetWord gx
- GxRsSetFloat gx
- GxRsSet gx
- GxRsSetObject gx
- GxRsGetInt gx
- GxRsPush gx
- GxRsPop gx
- GxDeviceCaps gx
- GxPrimRenderOne gx
- 0x58b200 gx
- 0x58b220 gx
- GxXformSetTexture gx
- TestWorldBoxThunk terrain
- WriteDecalVerticesColoured lighting
- WriteDecalVertices lighting
- WriteDecalIndices lighting
- MultiplyMatrix4 cmath
Calls and jumps by a bare address, from tables/calls.tsv.