Class SceneLightingVolume
Namespace: ValveResourceFormat.Renderer.SceneEnvironment
Assembly: Renderer.dll
Adds the baked lighting of a cubemap or light probe volume entity to a scene, from the entity's keyvalues: its environment map, and its light probe. Compiled maps and source maps both use it, and each sets the SceneNode.EntityData of the nodes to the entity they belong to.
public static class SceneLightingVolumeInheritance
object ← SceneLightingVolume
Remarks
Entity scale does not resize a volume: its baked probe grid is the unscaled box over the voxel size, and objects bound to it by their precomputed handshake only fall inside it at that size.
Methods
AddEnvironmentMap(Scene, Entity, in Matrix4x4, string?, bool)
Adds the environment map a lighting volume entity names to the lighting of a scene.
public static SceneEnvMap? AddEnvironmentMap(Scene scene, EntityLump.Entity entity, in Matrix4x4 transform, string? layerName, bool isSphere)Parameters
scene Scene
The scene.
entity EntityLump.Entity
The keyvalues of the entity.
transform Matrix4x4
Where the entity is placed, without its scale.
layerName string?
Visibility layer of the entity.
isSphere bool
Whether the volume is a sphere of influenceradius rather than a box.
Returns
The environment map, or null when the entity names no texture.
AddLightProbe(Scene, Entity, in Matrix4x4, string?, bool, bool)
Adds the light probe a lighting volume entity names to the lighting of a scene.
public static SceneLightProbe AddLightProbe(Scene scene, EntityLump.Entity entity, in Matrix4x4 transform, string? layerName, bool isSphere, bool fadesAtEdges)Parameters
scene Scene
The scene.
entity EntityLump.Entity
The keyvalues of the entity.
transform Matrix4x4
Where the entity is placed, without its scale.
layerName string?
Visibility layer of the entity.
isSphere bool
Whether the volume is a sphere of influenceradius rather than a box.
fadesAtEdges bool
Whether the probe fades out over the edge fade distances, otherwise it ends at its box.
Returns
The light probe.

