Struct SceneLight.BarnFaceData ​
Namespace: ValveResourceFormat.Renderer.SceneEnvironment
Assembly: Renderer.dll
GPU data and frustum matrix for one face of a barn or omni2 light.
csharp
public struct SceneLight.BarnFaceDataProperties ​
FrustumToWorld ​
Gets or sets the inverse of SceneLight.BarnFaceData.WorldToFrustum. Mapping the clip cube through it recovers the face's lit volume in world space, which the light cull pass bins to tiles.
csharp
public Matrix4x4 FrustumToWorld { readonly get; set; }Property Value ​
GpuData ​
Gets or sets the GPU constant buffer data for this light face.
csharp
public BarnLightConstants GpuData { readonly get; set; }Property Value ​
ObbToWorld ​
Gets or sets the map from the cube [-1,1]^3 to the illumination OBB, the second volume the shader rejects fragments outside of. Default when the face has no OBB.
csharp
public Matrix4x4 ObbToWorld { readonly get; set; }Property Value ​
WorldToFrustum ​
Gets or sets the world-to-frustum projection matrix for shadow rendering.
csharp
public Matrix4x4 WorldToFrustum { readonly get; set; }
