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

    Returns UtilityLayerRenderer

Properties

mainSceneTrackerPredicate

mainSceneTrackerPredicate: function

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

Type declaration

onPointerOutObservable

onPointerOutObservable: Observable<number>

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

onlyCheckPointerDownEvents

onlyCheckPointerDownEvents: boolean

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

originalScene

originalScene: Scene

the original scene that will be rendered on top of

processAllEvents

processAllEvents: boolean

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

shouldRender

shouldRender: boolean

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

utilityLayerScene

utilityLayerScene: Scene

The scene that is rendered on top of the original scene

Static DefaultKeepDepthUtilityLayer

DefaultKeepDepthUtilityLayer: UtilityLayerRenderer

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)

Static DefaultUtilityLayer

DefaultUtilityLayer: UtilityLayerRenderer

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)

Methods

dispose

  • dispose(): void

render

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

    Returns void

Generated using TypeDoc