GxXformSetIdentity
function · gx · orchestration
- Address
0x58b230· 13 bytes, up to0x58b23c- Signature
void __fastcall (uint32_t index)- Meaning
- Loads the identity into the matrix stack of a transform slot through 0x5927f0
- Confidence
- verified, proof one
- Finding
- models/render#texture-coordinates
Finding: Texture coordinates in models: drawing
A stage takes generated coordinates when the header's coordinate lookup +0xa0 at unit +0x12 + k
is above 2. Otherwise a transform lookup +0xb0 at unit +0x16 + k below the header's transform
count selects the instance's matrix +0xb4[i]; any other stage gets identity. The vertex shader
lane writes the stage's two constants (0.5, 0, 0, 0.5) and (0, 0.5, 0, 0.5), the matrix's columns 0
and 1, or the identity pair; only a transform stage's program reads them. The fixed lane takes
texture generation mode 6, the whole matrix, or the identity. The setup is skipped when the
element's kind, shared model, unit +0x12 and +0x16 equal the previous element's and its texture
count is not above the last.
The derivation is in the doc.
Callers 11
- CompositeInteriorTiles ui
- DrawOceanPass terrain
- DrawRiverPass terrain
- DrawMagmaPass terrain
- BeginPassTarget ffxeffects
- M2DrawSetTextures models
- LightningBolt::Render gx
- QueryGlareOcclusion lighting
- DrawDisc lighting
- DrawSkyGradient lighting
- DrawClouds lighting
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.