public record class VirtualShadowAssetThe sun's shadow as a virtual map: doc 22 phase 7.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
ShadowMapAsset's replacement rather than its sibling. Four cascades are four fixed resolutions over a whole frustum, and a virtualized scene's geometry is finer than any of them — so the cascade's own texel size becomes the visible limit. This fits a clipmap instead, and allocates only the pages some pixel actually asked for. A document with both nodes in it renders two shadow maps and shades from the virtual one wherever it has a drawn page, which is the fall-through ClusteredShading.Shadow is written for.
Fields and properties (10)
public string NameThe node's name, for debug groups and for a human reading the file.
public bool EnabledWhether the node runs.
public string StageThe name of the stage that draws depth-only casters.
public string DepthWhich depth resource the marking pass reads.
public string ViewThe view the clipmap is centred on and whose depth is marked — the camera.
public int LevelsHow many levels the clipmap has.
public float FirstExtentHow wide level zero is, in world units.
public float DepthRangeHow deep each level's box is along the light, which is its caster range.
public int PagesPerFrameHow many pages may be allocated, and drawn, per frame.
public string[] PassesWhich passes' compose slots the map is published under.
Used by (3)
- CompositorBuilderVixen.Rendering
- TypeRegistrationVixen.Rendering
- Vixen_Rendering_Compositor_VirtualShadowAssetSerializerVixen.Rendering