MeshDrawContext class final Geometry

What a MeshDrawSelector sees for one draw.

The renderer reuses one instance across draws, so a selector must not keep it.

Constructors

MeshDrawContext({required MeshDrawPass pass, required Vector3 cameraPosition, required bool primaryView})
Creates a context. The renderer builds these; tests may too.

Properties

cameraPosition ↔ Vector3
The world-space position of the camera rendering the pass. Spot and point shadow maps shared by a frame's views take its screen view's camera, so a render texture shows the shadows the screen view sees.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
pass ↔ MeshDrawPass
The pass being encoded.
getter/setter pair
primaryView ↔ bool
Whether the pass renders for a screen view's camera. False for texture views, reflection captures, and shadow maps.
getter/setter pair
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