BuildDecalTransforms
function · lighting · primitive
- Address
0x6d6fa0· 908 bytes, up to0x6d732b- Meaning
- Builds a decal box's texture transform and its height fade transform
- Confidence
- inferred
- Finding
- lighting/shadows#projected-decals
- Test
lighting::sky_billboard_build_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 3
- UpdateRipples terrain
- AddFootprint terrain
- DrawDecal lighting
Callees 8
- SetVector3 spline
- 0x481900 ui
- ScaleVector3 objectlayer
- AddVector3 objectlayer
- MultiplyMatrix4 cmath
- MultiplyMatrix4InPlace cmath
- BuildAxisRotation4x4 cmath
- TranslateMatrix cmath
Calls and jumps by a bare address, from tables/calls.tsv.