RenderViewGroup class Rendering

Views of one scene rendered together, sharing the work that does not depend on which view looks.

A stereo pair is the common case. Its two views are 6 cm apart and see almost the same world, so the group culls against one frustum containing both (sharedCulling, see RenderView.cullingFrustum), and fits the directional shadow cascades once from the same combined volume and renders the shadow atlas once (sharedShadows), which also keeps the shadows identical between the eyes. Everything per view (post-processing, temporal history, the depth fit) stays per view. Views whose orientations differ by more than a few degrees fall back to per-view culling and shadows, since one frustum would then be far larger than either.

A plain list of views passed to Scene.renderViews is one group per view, which is the split-screen behavior.

Constructors

RenderViewGroup(List<RenderView> views, {bool sharedCulling = true, bool sharedShadows = true})
Groups views, at least one.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sharedCulling → bool
Whether every view culls against one frustum containing them all.
final
sharedShadows → bool
Whether the group's shadows are fitted and rendered once, by its first view, and sampled by the rest.
final
views → List<RenderView>
The views, in the order they render.
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