Capítulo 418 de 859

Chapter 418: FXAANode

Core Idea

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

Key Concepts

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

Code Examples

import { fxaa } from 'three/addons/tsl/display/FXAANode.js';
  • What it demonstrates: Typical usage of FXAANode.

Reference Tables

Constructor

Signature
new FXAANode( textureNode : TextureNode )

Properties

PropertyDescription
.textureNode : TextureNodeThe texture node that represents the input of the effect.
.updateBeforeType : stringThe updateBeforeType is set to NodeUpdateType.FRAME since the node updates its internal uniforms once per frame in updateBefore().

Methods

MethodDescription
.setup( builder : NodeBuilder ) : ShaderCallNodeInternalThis 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.

Key Takeaways

  1. FXAANode extends: EventDispatcher → Node → TempNode
  2. Most relevant properties: textureNode, updateBeforeType.
  3. Key methods: setup, updateBefore.

Connects To