Class FXAAEffect
A FXAA anti-aliasing pass.
[DataContract("FXAAEffect")]
public class FXAAEffect : ImageEffectShader, IComponent, IReferencable, ICollectorHolder, IScreenSpaceAntiAliasingEffect, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
- Inheritance
-
FXAAEffect
- Implements
- Inherited Members
- Extension Methods
Constructors
FXAAEffect()
Initializes a new instance of the FXAAEffect class.
public FXAAEffect()
FXAAEffect(string)
Initializes a new instance of the FXAAEffect class.
public FXAAEffect(string antialiasShaderName)
Parameters
antialiasShaderName
stringName of the antialias shader.
Exceptions
- ArgumentNullException
antialiasShaderName
Properties
Dither
The dithering type used (directly related to rendering style).
[DataMember(10)]
public FXAAEffect.DitherType Dither { get; set; }
Property Value
InputLuminanceInAlpha
Gets or sets a value indicating whether the luminance will be retrieved from the alpha channel of the input color. Otherwise, the green component of the input color is used as a luminance.
[DataMember(30)]
[Display("Input luminance from alpha", null)]
public bool InputLuminanceInAlpha { get; set; }
Property Value
- bool
true
the luminance will be retrieved from the alpha channel of the input color. Otherwise, the green component of the input color is used as a luminance.
NeedRangeDecompress
public bool NeedRangeDecompress { get; }
Property Value
Quality
The quality of the FXAA (directly related to performance). From 0 to 5 with Medium, from 0 to 9 with Low and unavailable (should be 9) with None.
[DataMember(20)]
[DataMemberRange(0, 9, 1, 2, 0)]
public int Quality { get; set; }
Property Value
RequiresDepthBuffer
public bool RequiresDepthBuffer { get; }
Property Value
RequiresVelocityBuffer
public bool RequiresVelocityBuffer { get; }
Property Value
Methods
GetQualityRange(DitherType)
public static (int, int) GetQualityRange(FXAAEffect.DitherType dither)
Parameters
dither
FXAAEffect.DitherType
Returns
UpdateParameters()
Updates the effect Parameters from properties defined in this instance. See remarks.
protected override void UpdateParameters()
Remarks
By default, all the input textures will be remapped to Texture0...etc.
Exceptions
- InvalidOperationException
Expecting less than 10 textures in input