Vixen
02b45cc4
csharp
public record class DistanceFieldAoAsset

The screen-space pass that marches the distance field for occlusion and sun shadow.

Read the guide page for this →

Remarks

[19](../../../docs/plan/19-lighting-and-global-illumination.md) § L1's consumer. GlobalDistanceField composites the clipmap and this reads it — and ⚠ the two have to name the same shader, because that name is the compose-slot prefix one writes its bindings under and the other reads them from. They are separate strings on purpose: a frame may march a field a different node composited, or none at all.

Source left alone answers "nothing is near" — fully open, fully lit — which is the honest default for a project with no clipmap, and is why this node is safe to leave in a document that a given build has no field for.

Fields and properties (9)

  • 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 Depth

    The depth it reconstructs world positions from.

  • public string Normals

    The normals it orients the occlusion integral by.

  • public string Output

    The name the result is published under.

  • public PixelFormat Format

    The format of the target it declares.

  • public string Source

    The shader behind the field slot — what the march actually reads.

  • public bool SunShadow

    Whether to trace a sun shadow alongside the occlusion.

  • public string View

    The view whose camera unprojects the depth, or empty for a host that feeds the matrix.

Used by (4)

  • PostEffectFactoryVixen.Rendering.PostFx
  • PostEffectTestsVixen.Rendering.PostFx.Tests
  • TypeRegistrationVixen.Rendering.PostFx
  • Vixen_Rendering_PostFx_DistanceFieldAoAssetSerializerVixen.Rendering.PostFx