Changes

1,566 bytes added ,  06:32, 4 December 2015
Line 6,062: Line 6,062:  
| 12-21
 
| 12-21
 
| unsigned, Height - 1
 
| unsigned, Height - 1
 +
|}
 +
 +
=== GPUREG_GAS_LIGHT_XY ===
 +
 +
{| class="wikitable" border="1"
 +
! Bits
 +
! Description
 +
|-
 +
| 0-7
 +
| unsigned, Planar shading minimum intensity
 +
|-
 +
| 8-15
 +
| unsigned, Planar shading maximum intensity
 +
|-
 +
| 16-23
 +
| unsigned, Planar shading density attenuation
 +
|}
 +
 +
=== GPUREG_GAS_LIGHT_Z ===
 +
 +
{| class="wikitable" border="1"
 +
! Bits
 +
! Description
 +
|-
 +
| 0-7
 +
| unsigned, View shading minimum intensity
 +
|-
 +
| 8-15
 +
| unsigned, View shading maximum intensity
 +
|-
 +
| 16-23
 +
| unsigned, View shading density attenuation
 +
|}
 +
 +
=== GPUREG_GAS_LIGHT_Z_COLOR ===
 +
 +
{| class="wikitable" border="1"
 +
! Bits
 +
! Description
 +
|-
 +
| 0-7
 +
| unsigned, View shading effect in line-of-sight direction
 +
|}
 +
 +
=== GPUREG_GAS_LUT_INDEX ===
 +
 +
{| class="wikitable" border="1"
 +
! Bits
 +
! Description
 +
|-
 +
| 0-15
 +
| unsigned, Index
 +
|}
 +
 +
=== GPUREG_GAS_LUT_DATA ===
 +
 +
{| class="wikitable" border="1"
 +
! Bits
 +
! Description
 +
|-
 +
| 0-31
 +
| LUT data
 +
|}
 +
 +
These registers behave as a FIFO queue. Each write to these registers writes the provided value to the gas look-up table, starting at the index selected with GPUREG_GAAS_LUT_INDEX.
 +
 +
==== Gas Look-Up Table ====
 +
 +
16 elements:
 +
 +
First 8 elements:
 +
{| class="wikitable" border="1"
 +
! Bits
 +
! Description
 +
|-
 +
| 0-7
 +
| signed, Red
 +
|-
 +
| 8-15
 +
| signed, Green
 +
|-
 +
| 16-23
 +
| signed, Blue
 +
|}
 +
 +
Last 8 elements:
 +
{| class="wikitable" border="1"
 +
! Bits
 +
! Description
 +
|-
 +
| 0-7
 +
| unsigned, Red
 +
|-
 +
| 8-15
 +
| unsigned, Green
 +
|-
 +
| 16-23
 +
| unsigned, Blue
 +
|}
 +
 +
=== GPUREG_GAS_DELTAZ_DEPTH ===
 +
 +
{| class="wikitable" border="1"
 +
! Bits
 +
! Description
 +
|-
 +
| 0-23
 +
| fixed0.16.8, Depth direction attenuation proportion
 
|}
 
|}
  
1,434

edits