📄 threejs/Addons/TSL/FXAANode

File: FXAANode.md | Updated: 11/15/2025


title: FXAANode category: Addons layout: docs

FXAANode

Post processing node for applying FXAA. This node requires sRGB input so tone mapping and color space conversion must happen before the anti-aliasing.

Import

FXAANode is an addon, and must be imported explicitly, see Installation#Addons.

import { fxaa } from 'three/addons/tsl/display/FXAANode.js';

Constructor

new FXAANode( textureNode : TextureNode )

Constructs a new FXAA node.

textureNode | The texture node that represents the input of the effect.
---|---

Properties

.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().

Default is 'frame'.

Overrides: TempNode#updateBeforeType

Methods

.setup( builder : NodeBuilder ) : ShaderCallNodeInternal

This method is used to setup the effect's TSL code.

builder | The current node builder.
---|---

Overrides: TempNode#setup

.updateBefore( frame : NodeFrame )

This method is used to update the effect's uniforms once per frame.

frame | The current node frame.
---|---

Overrides: TempNode#updateBefore

Source

examples/jsm/tsl/display/FXAANode.js