Renderer3D class final
Forward renderer for RenderScenes: physically based lighting from a sun (with two cascades of shadow maps), up to 8 point/spot lights and a hemisphere ambient; skinned meshes; a gradient sky; HDR with 4x MSAA and ACES tonemapping where the device can.
Properties
- bloom → BloomSettings
-
Glow around bright things.
final
- clipPlane ↔ (double, double, double, double)?
-
A slice through the scene: nothing on the far side of the plane —
(normal x, y, z, distance along it) — is drawn. Null for none.
getter/setter pair
- defaults → DefaultTextures
-
Stand-ins for missing material maps.
final
- device → GpuDevice
-
The device it draws with.
final
- fxaa ↔ bool
-
Smooths edges after tonemapping (HDR only): for devices that draw
without MSAA (msaa off, or not supported).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- msaa ↔ bool
-
Whether to multisample (when the device can).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadows → ShadowSettings
-
The sun's shadows.
final
- skinning ↔ SkinningMode
-
How joint palettes reach the GPU: a texture where the device can read
float textures in the vertex stage, else uniform blocks.
getter/setter pair
- stats → RenderStats
-
What the last render did.
final
- targets → RenderTargetPool
-
Intermediate targets, reused frame to frame.
final
- uploader → ModelUploader
-
Uploads models for this renderer.
final
- viewMode ↔ RenderViewMode
-
How the scene is drawn: lit, as the game draws it; unlit, to read
shapes by; or as edges only (an editor's views).
getter/setter pair
- wireColor ↔ (double, double, double, double)
-
The colour RenderViewMode.wireframe draws edges in.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
RenderScene scene, RenderView view, GpuSurface surface) → Future< bool> -
Draws
sceneseen fromviewinto a new frame ofsurfaceand presents it. Completes when the GPU has finished. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
GpuDevice device) → Future< Renderer3D> -
Creates a renderer on
device, loading and creating every pipeline up front. -
tryCreate(
{GpuDevice? device, void onUnsupported(String reason)?}) → Future< Renderer3D?> -
A renderer on
device, or on this platform's GPU when that is null — or null, after tellingonUnsupportedwhy, where there is no Flutter GPU (see createGpuDevice) or the renderer fails to start.
Constants
- jointsPerRow → const int
- Joints per row of the joint texture (three texels each).