RenderPreset class final
What a RenderSnapshotJob is asked for.
Not RenderSettings alone. A live viewport already has a resolution —
its window's — and never asks for more samples than one screen pixel. A
snapshot has neither: its resolution is whatever the export dialog says,
and supersampling is the one knob screen 12 used to call "samples" before
the 2026-09-09 decision named it for what it is.
Constructors
- RenderPreset({required int width, required int height, required SnapshotCamera camera, int ssaa = 1, RenderSettings settings = const RenderSettings(), int tilesX = 1, int tilesY = 1, Vector4? clearColor})
-
const
Properties
- camera → SnapshotCamera
-
final
- clearColor → Vector4?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings → RenderSettings
-
Everything a frame already takes a setting for — bloom, shadows, ambient
occlusion, reflections. Reused as-is: a snapshot is still one frame.
final
- ssaa → int
-
1 for no supersampling, 2 for a linear 2×2 supersample resolved back down
to width × height.
final
- tilesX → int
-
The grid a large snapshot renders as, one tile at a time —
pro-eng-04's ownTiledProjection, stitched afterwards.(1, 1)is one tile the size of the whole frame, the same code path with nothing to stitch.final - tilesY → int
-
final
- width → int
-
The snapshot's own width, after any supersampling has been resolved back
down — the size the returned PNG is encoded at.
final
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