Class LightCullConstants
Namespace: ValveResourceFormat.Renderer.Buffers
Assembly: Renderer.dll
Layout of one scene's cull masks, plus the view they were built against.
public class LightCullConstantsInheritance
Remarks
Its own buffer rather than part of because it is per scene, not per view: the 3D skybox shares the camera but bins its own lights into its own masks, and binding a different one of these is the whole of switching between them.
Fields
EnvMapBinBase
First word of the env map depth bin mask region.
public uint EnvMapBinBaseField Value
EnvMapCount
Env map probe slots the shading pass may iterate. Bits past it exist in the last mask word but name nothing, and the all ones masks written when binning is off do not distinguish them.
public uint EnvMapCountField Value
EnvMapCullWords
Words per env map tile and bin mask this frame.
public uint EnvMapCullWordsField Value
EnvMapTileBase
First word of the env map tile mask region.
public uint EnvMapTileBaseField Value
LightCullCameraDir
World-space forward direction of the camera the masks were built for.
public Vector3 LightCullCameraDirField Value
LightCullCameraPosition
World-space position of the camera the masks were built for.
public Vector3 LightCullCameraPositionField Value
LightCullPixelRemap
Maps this pass's pixel to the one the same ray occupies in the view the masks were built for: xy scale, zw bias. Identity for the view that produced them.
public Vector4 LightCullPixelRemapField Value
LightCullWords
Number of 32 bit words each barn light tile and slice mask occupies this frame.
public uint LightCullWordsField Value
LightDepthSliceParams
Depth slice mapping: X slices per octave, Y reciprocal near plane.
public Vector4 LightDepthSliceParamsField Value
LightSliceBase
Index of the first word of the barn light depth slice mask region.
public uint LightSliceBaseField Value
LightSliceCount
Number of depth slices in the slice mask region.
public uint LightSliceCountField Value
LightTileBase
Index of the first word of the barn light screen tile mask region.
public uint LightTileBaseField Value
LightTileCols
Number of tile columns.
public uint LightTileColsField Value
LightTileRows
Number of tile rows.
public uint LightTileRowsField Value
LightTileShift
Right shift converting a pixel coordinate into a tile coordinate.
public uint LightTileShiftField Value
_Padding0
Padding to maintain 16-byte struct alignment.
public uint _Padding0Field Value
_Padding1
Padding to maintain 16-byte struct alignment.
public float _Padding1Field Value
_Padding2
Padding to maintain 16-byte struct alignment.
public float _Padding2
