s_d3dCombineAlphaOp
global · gx
- Address
0x80a274· 24 bytes, up to0x80a28b- Type
uint32_t[6]- Meaning
- Holds the D3DTOP alpha operation of each combine preset 0 to 5
- Confidence
- verified, proof one
- Finding
- gx/renderstate#texture-stage-combine
Finding: Texture stage combine in gx: render state
A stage's combine preset (ids 0x1f to 0x26, values 0 to 5) selects Direct3D operations from 0x80a25c (colour: 4, 4, 13, 7, 5, 12) and 0x80a274 (alpha: 3, 4, 3, 7, 5, 3), as D3DTOP values, or an OpenGL record of the table 0x85c250 (six records of 0x2c bytes). OpenGL sets GL_COMBINE with the record's scales and sources (0x59bc79), or only the texture environment mode where the combine extension is missing.
| preset | colour (D3D, GL) | alpha (D3D, GL) |
|---|---|---|
| 0 | modulate, modulate | arg 2, previous |
| 1 | modulate, modulate | modulate, modulate |
| 2 | blend texture alpha, interpolate | arg 2, previous |
| 3 | add, add | add, add |
| 4 | modulate 2x, modulate with scale 2 | modulate 2x, scale 2 |
| 5 | blend diffuse alpha, interpolate | arg 2, previous |
The derivation is in the doc.