ConstructorOptions
Properties
The color to clear the output texture to. Default value - Color.BLACK
Whether or not to force the texture dimensions to be both equal powers of two. The power of two will be the next power of two of the minimum of the dimensions. Default value - false
The fragment shader to use. The default sampler2D
uniforms are colorTexture
and depthTexture
. The color texture is the output of rendering the scene or the previous stage. The depth texture is the output from rendering the scene. The shader should contain one or both uniforms. There is also a vec2
varying named v_textureCoordinates
that can be used to sample the textures.
The unique name of this post-process stage for reference by other stages in a composite. If a name is not supplied, a GUID will be generated. Default value - createGuid()
The pixel data type of the output texture. Default value - PixelDatatype.UNSIGNED_BYTE
The color pixel format of the output texture. Default value - PixelFormat.RGBA
How to sample the input color texture. Default value - PostProcessStageSampleMode.NEAREST
The rectangle to use for the scissor test.
A number in the range (0.0, 1.0] used to scale the texture dimensions. A scale of 1.0 will render this post-process stage to a texture the size of the viewport. Default value - 1.0