Class ShadowMapper
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Culls and sizes lights and packs their shadow faces into the atlas each frame.
public class ShadowMapperInheritance
Properties
BinnedLights
Gets the lights binned by the last call, in deterministic scene order.
public ReadOnlySpan<BinnedLight> BinnedLights { get; }Property Value
ShadowCasters
Gets the shadow faces queued for rendering into the atlas by the last call.
public List<BinnedShadowCaster> ShadowCasters { get; }Property Value
Methods
Bin(List<SceneLight>, Camera, int, Dictionary<string, int>)
Culls the given lights against the camera and allocates shadow atlas regions for the visible casters.
public void Bin(List<SceneLight> lights, Camera camera, int atlasSize, Dictionary<string, int> cookiePaths)Parameters
lights List<SceneLight>
The dynamic lights considered for binning.
camera Camera
The camera used for culling and shadow resolution selection.
atlasSize int
Pixel size of the shadow atlas texture.
cookiePaths Dictionary<string, int>
Map from cookie material path to cookie atlas index, used when recomputing dirty faces.
GetFacePlacement(int)
Gets the atlas placement for an absolute face index ( plus face index).
public ShadowFacePlacement GetFacePlacement(int index)Parameters
index int

