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.
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.
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Applies the given quality preset.
The preset.
Fire an event type.
Returns the effect attributes.
The attributes.
Returns the edge detection material.
The material.
Returns the WebGL extensions that are required by this effect.
The extensions.
Returns the edge weights material.
The material.
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.
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 edge detection sensitivity.
See EdgeDetectionMaterial#setEdgeDetectionThreshold for more details.
The edge detection sensitivity. Range: [0.05, 0.5].
Protected
setSets the maximum amount of horizontal/vertical search steps.
See SMAAWeightsMaterial#setOrthogonalSearchSteps for more details.
The search steps. Range: [0, 112].
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.
Subpixel Morphological Antialiasing (SMAA).
https://github.com/iryoku/smaa/releases/tag/v2.8