File: AfterImageNode.md | Updated: 11/15/2025
Post processing node for creating an after image effect.
AfterImageNode is an addon, and must be imported explicitly, see Installation#Addons.
import { afterImage } from 'three/addons/tsl/display/AfterImageNode.js';
Constructs a new after image node.
textureNode | The texture node that represents the input of the effect.
---|---
damp | The damping intensity. A higher value means a stronger after image effect. Default is 0.96.
How quickly the after-image fades. A higher value means the after-image persists longer, while a lower value means it fades faster. Should be in the range [0, 1].
The texture node that represents the input of the effect.
The updateBeforeType is set to NodeUpdateType.FRAME since the node renders its effect once per frame in updateBefore().
Default is 'frame'.
Overrides: TempNode#updateBeforeType
Frees internal resources. This method should be called when the effect is no longer required.
Overrides: TempNode#dispose
Returns the result of the effect as a texture node.
Returns: A texture node that represents the result of the effect.
Sets the size of the effect.
width | The width of the effect.
---|---
height | The height of the effect.
This method is used to setup the effect's TSL code.
builder | The current node builder.
---|---
Overrides: TempNode#setup
This method is used to render the effect once per frame.
frame | The current node frame.
---|---
Overrides: TempNode#updateBefore