Constructs a new SMAA effect.
Optional
options: { The options.
Optional
edgeThe edge detection mode.
Optional
predicationThe predication mode.
Optional
preset?: SMAAPresetThe quality preset.
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.
The edge detection material.
Use edgeDetectionMaterial instead.
The edge detection material.
The edges texture.
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 edge weights material.
The edge weights texture.
Static
areaThe SMAA area image, encoded as a base64 data URL.
Static
searchThe SMAA search image, encoded as a base64 data URL.
Applies the given quality preset.
The preset.
Returns the effect attributes.
The attributes.
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; }
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.
Protected
setProtected
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.
Subpixel Morphological Antialiasing (SMAA).
https://github.com/iryoku/smaa/releases/tag/v2.8