Vixen
02b45cc4
csharp
public record class VirtualShadowAsset

The 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 Name

    The node's name, for debug groups and for a human reading the file.

  • public bool Enabled

    Whether the node runs.

  • public string Stage

    The name of the stage that draws depth-only casters.

  • public string Depth

    Which depth resource the marking pass reads.

  • public string View

    The view the clipmap is centred on and whose depth is marked — the camera.

  • public int Levels

    How many levels the clipmap has.

  • public float FirstExtent

    How wide level zero is, in world units.

  • public float DepthRange

    How deep each level's box is along the light, which is its caster range.

  • public int PagesPerFrame

    How many pages may be allocated, and drawn, per frame.

  • public string[] Passes

    Which passes' compose slots the map is published under.

Used by (3)

  • CompositorBuilderVixen.Rendering
  • TypeRegistrationVixen.Rendering
  • Vixen_Rendering_Compositor_VirtualShadowAssetSerializerVixen.Rendering