Class SceneLightProbe
Namespace: ValveResourceFormat.Renderer.SceneEnvironment
Assembly: Renderer.dll
Scene node for indirect lighting via light probe volumes.
public class SceneLightProbe : SceneNodeInheritance
object ← SceneNode ← SceneLightProbe
Inherited Members
SceneNode.Tint, SceneNode.Alpha, SceneNode.TintAlpha, SceneNode.Transform, SceneNode.Layers, SceneNode.LayerEnabled, SceneNode.Visible, SceneNode.BoundingBox, SceneNode.LocalBoundingBox, SceneNode.Name, SceneNode.Id, SceneNode.IsPointMarker, SceneNode.Flags, SceneNode.AdditionalFlags, SceneNode.RenderPasses, SceneNode.UpdateBuffers(Camera), SceneNode.Scene, SceneNode.KeepsMarkerSize, SceneNode.KeepsWorldAxes, SceneNode.AddLayers(ImmutableArray<WorldLayer>), SceneNode.Parent, SceneNode.Children, SceneNode.ParentAttachment, SceneNode.LocalTransform, SceneNode.SetParent(SceneNode?, string?, Matrix4x4?), SceneNode.GetChildFrame(string?), SceneNode.UpdateHierarchy(Scene.UpdateContext), SceneNode.GetRigidTransform(Matrix4x4), SceneNode.LightingOrigin, SceneNode.OverlayRenderOrder, SceneNode.LightingCache, SceneNode.EntityData, SceneNode.EntityInstance, SceneNode.Update(Scene.UpdateContext), SceneNode.Simulation, SceneNode.Render(Scene.RenderContext), SceneNode.GetSupportedRenderModes(), SceneNode.SetRenderMode(string), SceneNode.Delete(), SceneNode.GetCameraDistance(Camera)
Constructors
SceneLightProbe(Scene, AABB)
Initializes a new instance of the SceneLightProbe class with the given local-space bounds.
public SceneLightProbe(Scene scene, AABB bounds)Parameters
scene Scene
The scene this node belongs to.
bounds AABB
The local-space bounds of the light probe volume.
Fields
NoLightProbeIndex
Shader index of a node that has no light probe volume.
public const uint NoLightProbeIndex = 65535Field Value
uint
Properties
AtlasOffset
Gets or sets where the volume's probe grid starts in the probe atlas, in probes.
public Vector3 AtlasOffset { get; set; }Property Value
AtlasSize
Gets or sets the size of the volume's probe grid in the probe atlas, in probes.
public Vector3 AtlasSize { get; set; }Property Value
DirectLightIndices
Gets or sets the direct light index texture (lighting version 8.1).
public RenderTexture? DirectLightIndices { get; set; }Property Value
DirectLightScalars
Gets or sets the direct light scalar texture (lighting version 8.1).
public RenderTexture? DirectLightScalars { get; set; }Property Value
DirectLightShadows
Gets or sets the direct light shadow texture (lighting version 8.2).
public RenderTexture? DirectLightShadows { get; set; }Property Value
EdgeFadeDists
Gets the distance in from each side of the box over which the volume fades out.
public Vector3 EdgeFadeDists { get; init; }Property Value
HandShake
Gets or sets the handshake value used to match this probe to scene nodes during precomputation.
public int HandShake { get; set; }Property Value
int
IndoorOutdoorLevel
If multiple volumes contain an object, the highest priority volume takes precedence.
public int IndoorOutdoorLevel { get; init; }Property Value
int
Irradiance
Gets or sets the irradiance probe texture (lighting version 6 and 8.x).
public RenderTexture? Irradiance { get; set; }Property Value
ShaderIndex
Gets or sets the shader-side index assigned to this probe for UBO packing.
public int ShaderIndex { get; set; }Property Value
int
VoxelSize
Gets or sets the world-space size of each voxel cell in the probe grid.
public float VoxelSize { get; set; }Property Value
float
Methods
CalculateGpuProbeData()
Computes the LightProbeVolume GPU data for this probe, placing it in the probe atlas.
public LightProbeVolume CalculateGpuProbeData()
