This represents a full screen 2d layer. This can be useful to display a picture in the background of your scene for instance.
Instantiates a new layer. This represents a full screen 2d layer. This can be useful to display a picture in the background of your scene for instance.
Define the name of the layer in the scene
Define the url of the texture to display in the layer
Define the scene the layer belongs to
Defines whether the layer is displayed in front or behind the scene
Defines a color for the layer
Define the alpha blending mode used in the layer in case the texture or color has an alpha.
Define if the layer should alpha test or alpha blend with the rest of the scene. Alpha test will not mix with the background color in case of transparency. It will either use the texture color or the background depending on the alpha value of the current pixel.
Define the color of the layer (instead of texture).
Is the layer in background or foreground.
Define a mask to restrict the layer to only some of the scene cameras.
Define the name of the layer.
Define an offset for the layer in order to shift the texture.
Back compatibility with callback before the onAfterRenderObservable existed. The set callback will be triggered just after rendering the layer.
An event triggered after rendering the scene
Back compatibility with callback before the onBeforeRenderObservable existed. The set callback will be triggered just before rendering the layer.
An event triggered before rendering the scene
Back compatibility with callback before the onDisposeObservable existed. The set callback will be triggered when the layer has been disposed.
An event triggered when the layer is disposed.
Define if the layer is only used in renderTarget or if it also renders in the main frame buffer of the canvas.
Define the list of render target the layer is visible into.
Define the scale of the layer in order to zoom in out of the texture.
Define the texture the layer should display.
Disposes and releases the associated ressources.
Renders the layer in the scene.
Generated using TypeDoc