RenderInput enum Rendering

An engine geometry buffer a CustomRenderPass can request through CustomRenderPass.inputs. Declaring one makes the engine produce it this frame and exposes it on the RenderPassContext, so a pass can read the scene's geometry (depth, normals, shadows), not just its color. Together they turn the custom-pass API into a general depth/shadow-aware post-process system (contact shadows, custom occlusion, volumetrics, and so on).

Inheritance
Available extensions

Values

depth → const RenderInput

The linear (view-space) depth buffer, on RenderPassContext.sceneDepthLinear. Needs a perspective camera; reconstruct positions with RenderPassContext.cameraInfo.

normals → const RenderInput

View-space normals, octahedral-packed into the green/blue channels of the same buffer as depth (which this implies).

shadowMap → const RenderInput

The directional light's cascaded shadow map, on RenderPassContext.shadowMap, with RenderPassContext.shadowInfo for its cascade transforms. Null unless the scene has a shadow-casting directional light.

opaqueSceneColor → const RenderInput

The accumulated scene color behind the current material draw. Declared by materials (see Material.sceneInputs) so a translucent surface can sample what is behind it (refraction, absorption). Requesting it splits the scene pass around each screen-reading layer, so it costs nothing when unused. Custom render passes read the finished scene color from their pass texture instead and should not request this.

filteredSceneColor → const RenderInput

A roughness-filtered atlas of the accumulated scene color behind the current material draw. Materials use it for rough refraction. This implies opaqueSceneColor capture and is produced only when requested.

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<RenderInput>
A constant List of the values in this enum, in order of their declaration.