The graphics device used to draw the texture.
The source texture to be drawn. Accessible as
uniform sampler2D * source
in shader.
Optional
target: RenderTargetThe destination render target. Defaults to the frame buffer.
Optional
shader: ShaderThe optional custom shader used for rendering the texture.
Optional
rect: Vec4The viewport rectangle to use for the
texture, in pixels. Defaults to fullscreen (0, 0, target.width, target.height
).
Optional
scissorRect: Vec4The scissor rectangle to use for
the texture, in pixels. Defaults to fullscreen (0, 0, target.width, target.height
).
Draws a texture in screen-space. Mostly used by post-effects.