AntiAliasing

Enumerations

AntiAliasingMode
Values:
  • None = 0 - No anti-aliasing

  • FXAA = 1 - Enable FXAA (fast approximate anti-aliasing)

  • MSAA = 2 - Enable MSAA (multisample anti-aliasing)

FXAAQuality
Values:
  • Low = 0 - Default medium dither, fastest

  • Medium = 1 - Less dither, fastest

  • High = 2 - Less dither, highest quality

  • Max = 3 - No dither, very expensive

MSAAQuality
Values:
  • MSAA_2x = 0 - Increase number of supersamples x2. Not all hardware supports this feature.

  • MSAA_4x = 1 - Increase number of supersamples x4. Most hardware supports this feature.

  • MSAA_8x = 2 - Increase number of supersamples x8. Not all hardware supports this feature.

  • MSAA_Max = 3 - Use maximum number of supersamples. Hardware defined.

Classes

AntiAliasing : NativeComponent

This component is used to setup anti aliasing post process for result image. There is choice between FXAA and MSAA. FXAA is faster but less quality than MSAA. MSAA is slower but better quality. This render feature is disabled by default.

To use this component, add the following line to your project file:

require engine.core_components.anti_aliasing_component // or require engine.core

Usage example:

let setting = create_render_settings()
get_component(renderSettings) $(var aa : AntiAliasing?) {
    aa.active = true
    aa.mode = AntiAliasingMode.FXAA
    aa.fxaa_quality = FXAAQuality.Low
}
Properties:

AntiAliasing.active: bool
AntiAliasing.active =(value: bool)

Active flag. If set to true, anti aliasing will be applied to the result image. Default is false.

Arguments:
  • value : bool

AntiAliasing.mode: AntiAliasingMode
AntiAliasing.mode =(value: AntiAliasingMode)

Mode of the anti aliasing, can be {AntiAliasingMode None, AntiAliasingMode FXAA, AntiAliasingMode MSAA}. Default is None.

Arguments:
AntiAliasing.msaa_quality: MSAAQuality
AntiAliasing.msaa_quality =(value: MSAAQuality)

Quality of msaa. Can be {MSAAQuality MSAA_2x, MSAAQuality MSAA_4x, MSAAQuality MSAA_8x}. Default is MSAA_4x.

Arguments:
AntiAliasing.fxaa_quality: FXAAQuality
AntiAliasing.fxaa_quality =(value: FXAAQuality)

Quality of fxaa. Can be {FXAAQuality Low, FXAAQuality Medium, FXAAQuality High}. Default is Medium.

Arguments: