Class LightProbeAtlas
Namespace: ValveResourceFormat.Renderer.SceneEnvironment
Assembly: Renderer.dll
Light probe textures shared by all volumes in a scene, each volume sampling its own region. Either the atlas baked into a compiled map, or one packed at load time from volumes that have separate textures.
public sealed class LightProbeAtlasInheritance
object ← LightProbeAtlas
Properties
DirectLightIndices
Gets the direct light index texture (lighting version 8.1), or null if no volume has one.
public RenderTexture? DirectLightIndices { get; init; }Property Value
DirectLightScalars
Gets the direct light scalar texture (lighting version 8.1), or null if no volume has one.
public RenderTexture? DirectLightScalars { get; init; }Property Value
DirectLightShadows
Gets the direct light shadow texture (lighting version 8.2), or null if no volume has one.
public RenderTexture? DirectLightShadows { get; init; }Property Value
Irradiance
Gets the irradiance texture.
public required RenderTexture Irradiance { get; init; }Property Value
IsPacked
Gets whether the textures were packed at load time.
public bool IsPacked { get; }Property Value
bool
Methods
Delete()
Deletes the textures if they were packed at load time. Baked textures belong to the material loader.
public void Delete()FromBaked(SceneLightProbe)
Wraps the atlas baked into a compiled map.
public static LightProbeAtlas? FromBaked(SceneLightProbe volume)Parameters
volume SceneLightProbe
Any volume that samples the baked atlas.
Returns
The atlas, or null when the volume has no irradiance.
Pack(IReadOnlyList<SceneLightProbe>, MaterialLoader, ILogger)
Copies volumes with separate textures into one atlas, and points each volume at its region. Volumes that do not fit or are incompatible are skipped. A direct light texture missing on some volumes is zero there.
public static LightProbeAtlas? Pack(IReadOnlyList<SceneLightProbe> volumes, MaterialLoader materialLoader, ILogger logger)Parameters
volumes IReadOnlyList<SceneLightProbe>
Volumes with separate textures.
materialLoader MaterialLoader
Material loader the volume textures are evicted from.
logger ILogger
Logger for skipped volumes.
Returns
The atlas, or null if nothing was packed.

