Vixen
02b45cc4
csharp
public record class SsaoAsset

Ground-truth-style ambient occlusion, marched in screen space.

Read the guide page for this →

Remarks

The cheap half of the ambient story. !DistanceFieldAo is the other one and they answer different questions: this sees only what is on screen, and that sees the whole level.

Fields and properties (14)

  • 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 marches.

  • public string Normals

    The normals it orients the integral by.

  • public string View

    The view whose camera unprojects the depth.

  • public string Output

    The name the result is published under.

  • public PixelFormat Format

    The format of the target it declares.

  • public int Directions

    How many directions each pixel marches.

  • public int Steps

    How many steps along each direction.

  • public bool BentNormal

    Whether a bent normal is written alongside the occlusion.

  • public float Radius

    How far the march reaches, in metres.

  • public float Intensity

    How strongly the result darkens.

  • public float Falloff

    How fast occlusion falls off with distance.

  • public float Scale

    Resolution scale — half by default, which is where this effect belongs.

Used by (4)

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