Constructs a new tilt shift Effect
Optional options: { The options.
Optional bias?: numberDeprecated.
Optional blendThe blend function of this effect.
Optional feather?: numberThe softness of the focus area edges.
Optional focusThe relative size of the focus area.
Optional kernelThe blur kernel size.
Optional offset?: numberThe relative offset of the focus area.
Optional resolutionThe resolution scale.
Optional resolutionX?: numberThe horizontal resolution.
Optional resolutionY?: numberThe vertical resolution.
Optional rotation?: numberThe rotation of the focus area in radians.
Readonly blendThe blend mode of this effect.
Readonly blurA blur pass.
Readonly definesPreprocessor macro definitions.
Call setChanged after changing macro definitions.
Readonly extensionsWebGL extensions that are required by this effect.
Call setChanged after adding or removing extensions.
The name of this effect.
Protected rendererThe renderer.
Readonly uniformsShader uniforms.
Call setChanged after adding or removing uniforms.
A blend bias.
The softness of the focus area edges.
The relative size of the focus area.
Experimental
The input color space.
Protected Experimental
Sets the main camera.
Sets the main scene.
The relative offset of the focus area.
Experimental
The output color space.
Should only be changed if this effect converts the input colors to a different color space.
Protected Experimental
The resolution.
The rotation of the focus area in radians.
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Fire an event type.
The event that gets fired.
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.
Returns the WebGL extensions that are required by this effect.
The extensions.
Use extensions instead.
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Performs initialization tasks.
This method is called when the associated EffectPass is added to an EffectComposer.
The renderer.
Whether the renderer uses the alpha channel or not.
The type of the main frame buffers.
if(!alpha && frameBufferType === UnsignedByteType) { this.myRenderTarget.texture.format = RGBFormat; }
Removes a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
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.
Protected setUpdates this effect by performing supporting operations.
This method is called by the EffectPass right before the main fullscreen render operation, even if the
blend function is set to SKIP.
You may override this method if you need to update custom uniforms or render additional off-screen textures.
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 tilt shift effect.