The renderer this System works for.
Readonly
currentRender texture currently bound. {@code null} if rendering to the canvas.
Readonly
defaultList of masks for the PIXI.StencilSystem.
Readonly
destinationThe destination frame for the render-target's projection mapping.
See PIXI.ProjectionSystem#destinationFrame for more details.
Readonly
sourceThe source frame for the render-target's projection mapping.
See PIXI.ProjectionSystem#sourceFrame for more details
Readonly
viewportThe viewport frame for the render-target's viewport binding. This is equal to the destination-frame for render-textures, while it is y-flipped when rendering to the screen (i.e. its origin is always on the bottom-left).
Bind the current render texture.
Optional
renderTexture: RenderTextureRenderTexture to bind, by default its null
- the screen.
Optional
sourceFrame: RectanglePart of world that is mapped to the renderTexture.
Optional
destinationFrame: RectanglePart of renderTexture, by default it has the same size as sourceFrame.
Erases the render texture and fills the drawing area with a colour.
Optional
clearColor: ColorSourceThe color as rgba, default to use the renderer backgroundColor
Optional
mask: BUFFER_BITSBitwise OR of masks that indicate the buffers to be cleared, by default COLOR and DEPTH buffers.
Generated using TypeDoc
System plugin to the renderer to manage render textures.
Should be added after FramebufferSystem
Frames
The
RenderTextureSystem
holds a sourceFrame → destinationFrame projection. The following table explains the different coordinate spaces used:Memberof
PIXI