MatrixStackSetIdentity
function · gx · primitive
- Address
0x591370· 91 bytes, up to0x5913ca- Signature
void __thiscall (void *this)- Meaning
- Writes the identity into a stack's top matrix, marks its level identity and the stack dirty, unless already so marked
- Confidence
- verified, proof one
- Finding
- gx/renderstate#texture-coordinate-modes
- Test
gx::tex_coord_mode_difftest
Finding: Texture coordinate modes in gx: render state
Ids 0x2f to 0x36 give a stage a coordinate mode 0 to 6. Direct3D (0x5a2b40) sets the stage's
TEXCOORDINDEX to the stage number or-ed with a generator: mode 0 none; modes 1, 2 and 3 0x20000
(camera-space position); mode 4 0x30000 (reflection vector); mode 5 0x10000 (camera-space
normal); mode 6 0x30000. The stage's mode matrix is the identity for modes 0, 3, 4 and 5, a copy
of the top view matrix with its 3 by 3 part transposed and its translation row negated for modes 1
and 2 (mode 1 multiplies it further), and for mode 6 the rows (0.5, 0, 0, 0), (0, 0.5, 0, 0), (0, 0,
1, 0), (0.5, 0.5, 0, 1).
The derivation is in the doc.
Callers 3
- CGxDevice::XformSetIdentity gx
- CGxDeviceOpenGl::ApplyTexCoordMode gx
- CGxDeviceD3d::ApplyTexCoordMode gx
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.