Skip to content

Commit

Permalink
DenoiseNode: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Oct 20, 2024
1 parent 5c59528 commit c6f2ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/jsm/tsl/display/DenoiseNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class DenoiseNode extends TempNode {

const viewPosition = getViewPosition( uvNode, depth, this.cameraProjectionMatrixInverse ).toVar();

const noiseResolution = textureSize( this.noiseNode, 0 ).toVar();
const noiseResolution = vec2( textureSize( this.noiseNode, 0 ) ).toVar();
let noiseUv = vec2( uvNode.x, uvNode.y.oneMinus() ).toVar();
noiseUv = noiseUv.mul( this._resolution.div( noiseResolution ) ).toVar();
const noiseTexel = sampleNoise( noiseUv ).toVar();
Expand Down

0 comments on commit c6f2ce5

Please sign in to comment.