Class DirectionalLightFrustumViewer
Hierarchy
- DirectionalLightFrustumViewer
Index
Constructors
constructor
Creates a new frustum viewer
Parameters
light: DirectionalLight
directional light to display the frustum for
camera: Camera
camera used to retrieve the minZ / maxZ values if the shadowMinZ/shadowMaxZ values of the light are not setup
Returns DirectionalLightFrustumViewer
Accessors
show Lines
true to display the edges of the frustum
Returns boolean
true to display the edges of the frustum
Parameters
show: boolean
Returns void
show Planes
true to display the planes of the frustum
Returns boolean
true to display the planes of the frustum
Parameters
show: boolean
Returns void
transparency
Gets or sets the transparency of the frustum planes
Returns number
Gets or sets the transparency of the frustum planes
Parameters
alpha: number
Returns void
Methods
disposeSearch playground for dispose
Dispose of the class / remove the frustum view
Returns void
hideSearch playground for hide
Hides the frustum
Returns void
showSearch playground for show
Shows the frustum
Returns void
updateSearch playground for update
Updates the frustum. Call this method to update the frustum view if the light has changed position/direction
Returns void
Class used to render a debug view of the frustum for a directional light
https://playground.babylonjs.com/#7EFGSG#4
5.0.0