Class DirectionalLightFrustumViewerSince
Constructors
constructor
-
new DirectionalLightFrustumViewer(
light: DirectionalLight,
camera?: Nullable<Camera>,
): DirectionalLightFrustumViewerCreates a new frustum viewer
Parameters
- light: DirectionalLight
directional light to display the frustum for
- camera: Nullable<Camera> = null
camera used to retrieve the minZ / maxZ values if the shadowMinZ/shadowMaxZ values of the light are not setup
Returns DirectionalLightFrustumViewer
- light: DirectionalLight
Accessors
show Lines
-
get showLines(): boolean
true to display the edges of the frustum
Returns boolean
-
set showLines(show: boolean): void
Parameters
- show: boolean
Returns void
show Planes
-
get showPlanes(): boolean
true to display the planes of the frustum
Returns boolean
-
set showPlanes(show: boolean): void
Parameters
- show: boolean
Returns void
transparency
-
get transparency(): number
Gets or sets the transparency of the frustum planes
Returns number
-
set transparency(alpha: number): void
Parameters
- alpha: number
Returns void
Class used to render a debug view of the frustum for a directional light
See
https://playground.babylonjs.com/#7EFGSG#4 5.0.0