Skip to content

Commit 0510c36

Browse files
authored
Update GTAONode.js
1 parent 967be2b commit 0510c36

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/jsm/tsl/display/GTAONode.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ let _rendererState;
2525
* const scenePassDepth = scenePass.getTextureNode( 'depth' );
2626
*
2727
* const aoPass = ao( scenePassDepth, scenePassNormal, camera );
28+
* const aoPassOutput = aoPass.getTextureNode();
2829
*
29-
* renderPipeline.outputNode = scenePassColor.mul( vec4( vec3( aoPass.r ), 1 ) );
30+
* renderPipeline.outputNode = scenePassColor.mul( vec4( vec3( aoPassOutput.r ), 1 ) );
3031
* ```
3132
*
3233
* Reference: [Practical Real-Time Strategies for Accurate Indirect Occlusion](https://www.activision.com/cdn/research/Practical_Real_Time_Strategies_for_Accurate_Indirect_Occlusion_NEW%20VERSION_COLOR.pdf).

0 commit comments

Comments
 (0)