AntiAliasingMode enum Scene graph
Anti-aliasing strategy used when rendering a Scene.
Set on a Scene via Scene.antiAliasingMode. The default is auto, which selects msaa when the GPU backend supports offscreen MSAA and fxaa otherwise, so every backend gets anti-aliasing out of the box. Query support with Scene.isAntiAliasingModeSupported and read the technique that actually runs from Scene.effectiveAntiAliasingMode.
Values
- none → const AntiAliasingMode
-
No anti-aliasing. Geometry edges are rendered at the render target's native resolution.
- msaa → const AntiAliasingMode
-
4x multi-sample anti-aliasing on the scene pass. The highest quality option for geometry edges, and cheap on mobile GPUs. Not supported on every Flutter GPU backend; where it is unavailable, rendering falls back to fxaa (see Scene.effectiveAntiAliasingMode).
- fxaa → const AntiAliasingMode
-
Fast approximate anti-aliasing, a single post-process pass over the tone-mapped image. Supported on every backend. Softens all high-contrast edges, including texture detail, so prefer msaa where it is available.
- smaa → const AntiAliasingMode
-
Enhanced subpixel morphological anti-aliasing (SMAA 1x), three post-process passes over the tone-mapped image. Supported on every backend. Reconstructs edge shapes from their neighborhood, so edges come out cleaner than fxaa with far less blurring of texture detail, at roughly three times the anti-aliasing cost.
- taa → const AntiAliasingMode
-
Temporal anti-aliasing. Jitters the camera each frame and resolves against a reprojected history, so edges, specular shimmer, and screen-space effect noise all resolve. Needs the depth prepass, and adds a velocity pass when the scene has moving geometry. Tuned by Scene.temporalAntiAliasing.
- auto → const AntiAliasingMode
-
Selects msaa when the backend supports it and fxaa otherwise.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
AntiAliasingMode> - A constant List of the values in this enum, in order of their declaration.