ShadowState
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
interface ShadowStateMembers#
| Member | Kind | Description |
|---|---|---|
| active | Property | Whether shadows are drawn now: "sun" draws none while the sun is off or below the horizon |
| groundElevation | Property | |
| lastPass | Property | The last shadow map drawn: CPU ms to submit it, ms from start to finish, the frames it was drawn in, triangles (all passes), triangles of the transparent cas… |
| mapSize | Property | The shadow map's size in texels, null before the first |
| mode | Property | |
| quality | Property | |
| sectionPlanesCutShadows | Property | |
| texelSize | Property | One texel of the shadow map in mm |
| threshold | Property | |
| transparentCasters | Property | |
| updating | Property | Whether a new shadow map is being drawn over several frames (large scenes); the previous one shows meanwhile |
| viewMap | Property | The view map in use (high quality, drawn when the camera rests close by): its size, texel in mm, and its last pass (subset: drawn from the casters over its w… |
active#
active: booleanWhether shadows are drawn now: "sun" draws none while the sun is off or below the horizon
groundElevation#
groundElevation: number | nulllastPass#
lastPass: { elapsedMs: number; ms: number; size: number; steps: number; subset: boolean; texelSize: number; translucentTriangles: number; triangles: number } | nullThe last shadow map drawn: CPU ms to submit it, ms from start to finish, the frames it was drawn in, triangles (all passes), triangles of the transparent casters, size, texel, and whether it held only the largest casters (drawn while the sun moves over a large scene)
mapSize#
mapSize: number | nullThe shadow map's size in texels, null before the first
mode#
mode: "off" | "sun" | "ground"quality#
quality: "auto" | "standard" | "high"sectionPlanesCutShadows#
sectionPlanesCutShadows: booleantexelSize#
texelSize: number | nullOne texel of the shadow map in mm
threshold#
threshold: numbertransparentCasters#
transparentCasters: "none" | "threshold" | "attenuate" | "tint"updating#
updating: booleanWhether a new shadow map is being drawn over several frames (large scenes); the previous one shows meanwhile
viewMap#
viewMap: { lastPass: { elapsedMs: number; ms: number; steps: number; subset: boolean; triangles: number }; size: number; texelSize: number } | nullThe view map in use (high quality, drawn when the camera rests close by): its size, texel in mm, and its last pass (subset: drawn from the casters over its window only)