Vixen
dd8b0a81
csharp
public record class SmaaAsset

Subpixel morphological antialiasing, on the graded image.

Read the guide page for this →

Remarks

What FxaaAsset is for the frames that can afford three passes. FXAA guesses an edge's direction from one neighbourhood; this walks the whole edge, reads what crosses it at both ends, and looks the coverage up — so it softens silhouettes without softening the texture beside them.

⚠ Also after the tonemap, and for FXAA's reason above. Its thresholds are relative rather than absolute, so a document that puts it earlier gets a working filter rather than a no-op — but the edges it finds are then the ones in scene-referred light, which is not where the ones a viewer sees are.

Fields and properties (8)

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

    The image it antialiases.

  • public string Output

    The name the result is published under.

  • public PixelFormat Format

    The format of the target it declares.

  • public float EdgeThreshold

    The relative local contrast a boundary needs before it is an edge.

  • public float ContrastAdaptation

    How much steeper a nearby contrast may be before this edge is discarded.

  • public float LumaFloor

    The luminance below which the frame is treated as flat, in its own units.

Used by (5)

  • PostEffectFactoryVixen.Rendering.PostFx
  • SmaaTestsVixen.Rendering.PostFx.Tests
  • StandardFrameVixen.Rendering.PostFx
  • TypeRegistrationVixen.Rendering.PostFx
  • Vixen_Rendering_PostFx_SmaaAssetSerializerVixen.Rendering.PostFx