Logo Mibo

ShadowMeshDraw Type

A mesh draw collected for the shadow pass (caster geometry).

Record fields

Record Field Description

CastsShadow

Full Usage: CastsShadow

Field type: bool

Whether this draw was emitted while shadows were enabled. The shadow pass renders only draws with CastsShadow = true; the scene-depth pass renders all of them.

Field type: bool

Mesh

Full Usage: Mesh

Field type: PrimitiveMesh
Field type: PrimitiveMesh

StartIndex

Full Usage: StartIndex

Field type: int

First index of the mesh's slice within its shared buffer (startIndex).

Field type: int

Transform

Full Usage: Transform

Field type: Matrix
Field type: Matrix

VertexOffset

Full Usage: VertexOffset

Field type: int

First vertex of the mesh's slice within its shared buffer (baseVertex).

Field type: int

WorldBounds

Full Usage: WorldBounds

Field type: BoundingSphere

World-space bounds (mesh.Bounds transformed by Transform). Precomputed at collection time so the per-caster frustum cull in runShadowPass is a single ContainmentType check.

Field type: BoundingSphere

Type something to start searching.