Capítulo 418 de 859
Post processing node for applying FXAA. This node requires sRGB input so tone mapping and color space conversion must happen before the anti-aliasing.
updateBeforeType is set to NodeUpdateType.FRAME since the node updates its internal uniforms once per frame in updateBefore().import { fxaa } from 'three/addons/tsl/display/FXAANode.js';
Constructor
| Signature |
|---|
new FXAANode( textureNode : TextureNode ) |
Properties
| Property | Description |
|---|---|
.textureNode : TextureNode | The texture node that represents the input of the effect. |
.updateBeforeType : string | The updateBeforeType is set to NodeUpdateType.FRAME since the node updates its internal uniforms once per frame in updateBefore(). |
Methods
| Method | Description |
|---|---|
.setup( builder : NodeBuilder ) : ShaderCallNodeInternal | This method is used to setup the effect's TSL code. |
.updateBefore( frame : NodeFrame ) | This method is used to update the effect's uniforms once per frame. |