Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DirectionalLightFrustumViewer

Class used to render a debug view of the frustum for a directional light

see

https://playground.babylonjs.com/#7EFGSG#4

since

5.0.0

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

showLines

  • get showLines(): boolean
  • set showLines(show: boolean): any
  • true to display the edges of the frustum

    Returns boolean

  • true to display the edges of the frustum

    Parameters

    • show: boolean

    Returns any

showPlanes

  • get showPlanes(): boolean
  • set showPlanes(show: boolean): any
  • true to display the planes of the frustum

    Returns boolean

  • true to display the planes of the frustum

    Parameters

    • show: boolean

    Returns any

transparency

  • get transparency(): number
  • set transparency(alpha: number): any
  • Gets or sets the transparency of the frustum planes

    Returns number

  • Gets or sets the transparency of the frustum planes

    Parameters

    • alpha: number

    Returns any

Methods

disposeSearch playground for dispose

  • dispose(): void
  • Dispose of the class / remove the frustum view

    Returns void

hideSearch playground for hide

  • hide(): void
  • Hides the frustum

    Returns void

showSearch playground for show

  • show(): void
  • Shows the frustum

    Returns void

updateSearch playground for update

  • update(): void
  • Updates the frustum. Call this method to update the frustum view if the light has changed position/direction

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method