GPU/Commands: Difference between revisions

Lectem (talk | contribs)
Lectem (talk | contribs)
Param4 format for command 0x00C0: output scale + texenv buffers?
Line 1,164: Line 1,164:
!  Description
!  Description
|-
|-
| 31-0
| 31-18
| To be determined.
|-
| 17-16
| Alpha output scale factor
|-
| 15-2
| To be determined
| To be determined
|-
| 1-0
| Color output scale factor
|}
|}


This is used to specify the param for glTexEnv(..., ..., param).
{| class="wikitable" border="1"
!  Scale value
!  Corresponding factor
|-
| 0x0
| 1.0
|-
| 0x1
| 2.0
|-
| 0x2
| 4.0
|}
 
Probably also has something to do with Texenv buffer registers [[:GPU_Internal_Registers#GPUREG_00FD|PICA_REG_TEX_ENV_BUF_COLOR]] and [[GPU_Internal_Registers#GPUREG_00E0|PICA_REG_TEX_ENV_BUF_INPUT]].


=== Parameter value format for command 0x00C4 ===
=== Parameter value format for command 0x00C4 ===