Vixen
02b45cc4
csharp
public sealed class FxaaRenderer

FXAA: the cheap antialiasing, and the one that needs nothing but the colour it is given.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Luminance edges found from the frame itself, blended along their direction. It needs no history, no motion vectors, no depth and no second sample per pixel, which is why it is the fallback everywhere the others cannot go — mobile, a frame with no motion vectors, a debug view.

What it costs is texture detail: it cannot tell an edge in the geometry from an edge in an albedo map, so it softens both. That is the trade, and it is why TemporalAntialiasingRenderer is the default where it can run.

Fields and properties (5)

  • public required string Source

    The texture it antialiases.

  • public bool Subpixel

    Whether the subpixel pass runs, which softens single-pixel features.

  • public float EdgeThreshold

    The contrast an edge needs before it is antialiased at all.

  • public float EdgeThresholdMinimum

    The floor under that, so a dark area's noise is not treated as edges.

  • public float SubpixelQuality

    How much of the subpixel blend is applied.

Methods (2)

  • public FxaaRenderer()

    FXAA: the cheap antialiasing, and the one that needs nothing but the colour it is given.

  • protected override void Configure(CompositorFrame frame, ParameterCollection parameters, IList<ResourceBinding> bindings)

    Fills in this frame's parameters and bindings.

Used by (2)

  • PostEffectFactoryVixen.Rendering.PostFx
  • PostEffectTestsVixen.Rendering.PostFx.Tests