Constructs a new texture effect.
Optional
options: { The options.
Optional
aspectDeprecated. Adjust the texture's offset, repeat and center instead.
Optional
blendThe blend function of this effect.
Optional
texture?: TextureA texture.
Readonly
blendThe blend mode of this effect.
Readonly
definesPreprocessor macro definitions.
Call Effect.setChanged after changing macro definitions.
Readonly
extensionsWebGL extensions that are required by this effect.
Call Effect.setChanged after adding or removing extensions.
The name of this effect.
Protected
rendererThe renderer.
Readonly
uniformsShader uniforms.
Call Effect.setChanged after adding or removing uniforms.
Indicates whether aspect correction is enabled.
Adjust the texture's offset, repeat, rotation and center instead.
Experimental
The input color space.
Protected
Experimental
Sets the main camera.
Sets the main scene.
Experimental
The output color space.
Should only be changed if this effect converts the input colors to a different color space.
Protected
Experimental
The texture.
Indicates whether the texture UV coordinates will be transformed using the transformation matrix of the texture.
Use texture.matrixAutoUpdate instead.
Performs a shallow search for properties that define a dispose method and deletes them.
The EffectComposer calls this method when it is being destroyed.
Returns the effect attributes.
The attributes.
Protected
setProtected
Sets the effect attributes.
Effects that have the same attributes will be executed in the order in which they were registered. Some attributes imply a higher priority.
The attributes.
Protected
setProtected
Informs the associated EffectPass that this effect requires a shader recompilation.
Should be called after changing macros or extensions and after adding/removing uniforms.
Sets the depth texture.
You may override this method if your effect requires direct access to the depth texture that is bound to the associated EffectPass.
A depth texture.
Optional
depthPacking: DepthPackingStrategiesThe depth packing.
Protected
setUpdates the size of this effect.
You may override this method if you want to be informed about the size of the backbuffer/canvas. This method is called before initialize and every time the size of the EffectComposer changes.
The width.
The height.
Sets the swizzles that will be applied to the components of a texel before it is written to the output color.
The swizzle for the r
component.
Optional
g: ColorChannelThe swizzle for the g
component.
Optional
b: ColorChannelThe swizzle for the b
component.
Optional
a: ColorChannelThe swizzle for the a
component.
Protected
setUpdates this effect.
The renderer.
A frame buffer that contains the result of the previous pass.
Optional
deltaTime: numberThe time between the last frame and the current one in seconds.
A texture effect.