Skip to content

Commit a2d4aa5

Browse files
authored
Examples: Cleanup webgpu_postprocessing_ao (#32153)
1 parent e04b9f7 commit a2d4aa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/webgpu_postprocessing_ao.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<script type="module">
3737

3838
import * as THREE from 'three/webgpu';
39-
import { pass, mrt, output, normalView, velocity, vec3, vec4, directionToColor } from 'three/tsl';
39+
import { pass, mrt, output, normalView, velocity, vec3, vec4, directionToColor, colorSpaceToWorking } from 'three/tsl';
4040
import { ao } from 'three/addons/tsl/display/GTAONode.js';
4141
import { traa } from 'three/addons/tsl/display/TRAANode.js';
4242

@@ -116,7 +116,7 @@
116116
} );
117117
const scenePassNormal = scenePass.getTextureNode( 'normal' ).toInspector( 'Normal', () => {
118118

119-
return directionToColor( scenePassNormal.sample() );
119+
return colorSpaceToWorking( directionToColor( scenePassNormal ), THREE.SRGBColorSpace );
120120

121121
} );
122122
const scenePassVelocity = scenePass.getTextureNode( 'velocity' ).toInspector( 'Velocity' );

0 commit comments

Comments
 (0)