Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UtilityLayerRenderer

Renders a layer on top of an existing scene

Hierarchy

  • UtilityLayerRenderer

Implements

Index

Constructors

constructor

  • Instantiates a UtilityLayerRenderer

    Parameters

    • originalScene: Scene

      the original scene that will be rendered on top of

    • Optional handleEvents: boolean

      boolean indicating if the utility layer should handle events

    Returns UtilityLayerRenderer

Properties

mainSceneTrackerPredicateSearch playground for mainSceneTrackerPredicate

mainSceneTrackerPredicate: (mesh: Nullable<AbstractMesh>) => boolean

Gets or sets a predicate that will be used to indicate utility meshes present in the main scene

Type declaration

onPointerOutObservableSearch playground for onPointerOutObservable

onPointerOutObservable: Observable<number>

Observable raised when the pointer moves from the utility layer scene to the main scene

onlyCheckPointerDownEventsSearch playground for onlyCheckPointerDownEvents

onlyCheckPointerDownEvents: boolean

If set to true, only pointer down onPointerObservable events will be blocked when picking is occluded by original scene

originalSceneSearch playground for originalScene

originalScene: Scene

the original scene that will be rendered on top of

pickUtilitySceneFirstSearch playground for pickUtilitySceneFirst

pickUtilitySceneFirst: boolean

If the picking should be done on the utility layer prior to the actual scene (Default: true)

pickingEnabledSearch playground for pickingEnabled

pickingEnabled: boolean

Set to false to disable picking

processAllEventsSearch playground for processAllEvents

processAllEvents: boolean

If set to false, only pointerUp, pointerDown and pointerMove will be sent to the utilityLayerScene (false by default)

shouldRenderSearch playground for shouldRender

shouldRender: boolean

If the utility layer should automatically be rendered on top of existing scene

utilityLayerSceneSearch playground for utilityLayerScene

utilityLayerScene: Scene

The scene that is rendered on top of the original scene

Accessors

Static DefaultKeepDepthUtilityLayer

  • A shared utility layer that can be used to embed objects into a scene (Depth map of the previous scene is not cleared before drawing on top of it)

    Returns UtilityLayerRenderer

Static DefaultUtilityLayer

  • A shared utility layer that can be used to overlay objects into a scene (Depth map of the previous scene is cleared before drawing on top of it)

    Returns UtilityLayerRenderer

Methods

disposeSearch playground for dispose

  • dispose(): void
  • Disposes of the renderer

    Returns void

getRenderCameraSearch playground for getRenderCamera

  • getRenderCamera(getRigParentIfPossible?: boolean): Camera
  • Gets the camera that is used to render the utility layer (when not set, this will be the last active camera)

    Parameters

    • Optional getRigParentIfPossible: boolean

      if the current active camera is a rig camera, should its parent camera be returned

    Returns Camera

    the camera that is used when rendering the utility layer

renderSearch playground for render

  • render(): void
  • Renders the utility layers scene on top of the original scene

    Returns void

setRenderCameraSearch playground for setRenderCamera

  • Sets the camera that should be used when rendering the utility layer (If set to null the last active camera will be used)

    Parameters

    • cam: Nullable<Camera>

      the camera that should be used when rendering the utility layer

    Returns void

Legend

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