Add a child to the pixi container associated to the layer. All objects which are on this layer must be children of this container.
The child (PIXI object) to be added.
The z order of the associated object.
Change the z order of a child associated to an object.
The child (PIXI object) to be modified.
The z order of the associated object.
The sprite, displaying the "render texture" of the layer, to display for a lighting layer.
Remove a child from the internal pixi container. Should be called when an object is deleted or removed from the layer.
The child (PIXI object) to be removed.
Render the layer of the PixiJS RenderTexture, so that it can be then displayed with a blend mode (for a lighting layer) or consumed by Three.js (for 2D+3D layers).
Update the position of the PIXI container. To be called after each change made to position, zoom or rotation of the camera.
Set the texture of the 2D plane in the 3D world to be the same WebGL texture as the PixiJS RenderTexture - so that the 2D rendering can be shown in the 3D world.
The layer
The scene renderer
Pixi doesn't sort children with zIndex == 0.
Generated using TypeDoc
The renderer for a gdjs.Layer using Pixi.js.