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

A snapshot of the scene color after the opaque phase (skybox plus opaque draws) and before translucent draws. Declared by materials (see Material.sceneInputs) so a translucent surface can sample what is behind it (refraction, absorption). Requesting it splits the scene pass in two with a resolve in between, so it costs nothing when unused. Custom render passes read the finished scene color from their pass texture instead and should not request this.

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.