Import
DenoiseNode is an addon, and must be imported explicitly, see Installation#Addons.
import { denoise } from 'three/addons/tsl/display/DenoiseNode.js';
Constructor
new DenoiseNode( textureNode : TextureNode, depthNode : Node.<float>, normalNode : Node.<vec3>, camera : Camera )
Constructs a new denoise node.
| textureNode |
The texture node that represents the input of the effect (e.g. AO). |
| depthNode |
A node that represents the scene's depth. |
| normalNode |
A node that represents the scene's normals. |
| camera |
The camera the scene is rendered with. |
Properties
.depthPhi : UniformNode.<float>
The depth Phi value.
.index : UniformNode.<float>
The index.
.lumaPhi : UniformNode.<float>
The luma Phi value.
.noiseNode : TextureNode
The node represents the internal noise texture.
.normalNode : Node.<vec3>
A node that represents the scene's normals. If no normals are passed to the constructor (because MRT is not available), normals can be automatically reconstructed from depth values in the shader.
.normalPhi : UniformNode.<float>
The normal Phi value.
.radius : UniformNode.<float>
The radius.
.textureNode : TextureNode
The texture node that represents the input of the effect (e.g. AO).
.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 internal uniforms once per frame.
| frame |
The current node frame. |
- Overrides: TempNode#updateBefore