FullscreenQuadPass
extends RenderPass
in package
Table of Contents
Properties
- $extraUniforms : array<string, mixed>
- An array of extra uniforms to be set on the shader
- $shouldBlend : bool
- Should the pass blend with the existing content of the render target?
- $textureUniformName : string
- The name of the texture unform in the shader
- $appliedTexture : TextureResource
- $renderTargetRes : RenderTargetResource
- $shader : ShaderProgram
Methods
- __construct() : void
- Constructor
- execute() : void
- Executes the render pass
- name() : string
- Returns the name of the render pass, if not overriden this will return the class name.
- setup() : void
- Executes the render pass
Properties
$extraUniforms
An array of extra uniforms to be set on the shader
public
array<string, mixed>
$extraUniforms
= []
$shouldBlend
Should the pass blend with the existing content of the render target?
public
bool
$shouldBlend
= false
$textureUniformName
The name of the texture unform in the shader
public
string
$textureUniformName
= 'u_texture'
$appliedTexture
private
TextureResource
$appliedTexture
$renderTargetRes
private
RenderTargetResource
$renderTargetRes
$shader
private
ShaderProgram
$shader
Methods
__construct()
Constructor
public
__construct(RenderTargetResource $renderTargetRes, TextureResource $appliedTexture, ShaderProgram $shader) : void
Parameters
- $renderTargetRes : RenderTargetResource
- $appliedTexture : TextureResource
- $shader : ShaderProgram
execute()
Executes the render pass
public
execute(PipelineContainer $data, PipelineResources $resources) : void
Parameters
- $data : PipelineContainer
- $resources : PipelineResources
name()
Returns the name of the render pass, if not overriden this will return the class name.
public
name() : string
Return values
stringsetup()
Executes the render pass
public
setup(RenderPipeline $pipeline, PipelineContainer $data) : void
Parameters
- $pipeline : RenderPipeline
- $data : PipelineContainer