Class LightingConstants
Namespace: ValveResourceFormat.Renderer.Buffers
Assembly: Renderer.dll
Uniform buffer containing all scene lights and lightmap configuration.
public class LightingConstantsInheritance
Constructors
LightingConstants()
Initializes a new with all arrays allocated to their maximum sizes.
public LightingConstants()Fields
EnvMapSizeConstants
Mip level and size constants used when sampling environment maps.
public Vector4 EnvMapSizeConstantsField Value
IsSkybox
Non-zero when the current draw is part of the skybox.
public uint IsSkyboxField Value
LightColor_Brightness
Linear color (RGB) and brightness (W) for each light.
public Vector4[] LightColor_BrightnessField Value
Vector4[]
LightDirection_InvRange
World-space direction (XYZ) and inverse range (W) for each light.
public Vector4[] LightDirection_InvRangeField Value
Vector4[]
LightFallOff
Falloff curve parameters for each light.
public Vector4[] LightFallOffField Value
Vector4[]
LightPosition_Type
World-space position (XYZ) and type (W) for each light.
public Vector4[] LightPosition_TypeField Value
Vector4[]
LightSpotInnerOuterCosines
Inner and outer spot cone cosines for each light.
public Vector4[] LightSpotInnerOuterCosinesField Value
Vector4[]
LightToWorld
Transform matrix from light space to world space for each light.
public Matrix4x4[] LightToWorldField Value
LightmapUvScale
UV scale applied when sampling the lightmap atlas.
public Vector2 LightmapUvScaleField Value
MAX_ENVMAPS
Maximum number of environment map probes supported per scene.
public const int MAX_ENVMAPS = 128Field Value
MAX_LIGHTS
Maximum number of dynamic lights supported per scene.
public const int MAX_LIGHTS = 256Field Value
NumBarnLights
Number of active barn lights in the scene.
public uint NumBarnLightsField Value
SunLightBakedShadowMask
Sun light baked shadow mask (one-hot per baked shadow channel).
public Vector4 SunLightBakedShadowMaskField Value
Properties
DynamicLightCount
Gets or sets the number of dynamic lights in the scene.
public uint DynamicLightCount { get; set; }Property Value
StaticLightCount
Gets or sets the number of lightmapped lights in the scene.
public uint StaticLightCount { get; set; }
