Răsfoiți Sursa

Update webgpu_postprocessing_ssr.html

Clean up.
Michael Herzog 1 an în urmă
părinte
comite
a66dfb00fd
1 a modificat fișierele cu 7 adăugiri și 3 ștergeri
  1. 7 3
      examples/webgpu_postprocessing_ssr.html

+ 7 - 3
examples/webgpu_postprocessing_ssr.html

@@ -69,11 +69,16 @@
 			loader.load( 'models/gltf/steampunk_camera.glb', function ( gltf ) {
 			loader.load( 'models/gltf/steampunk_camera.glb', function ( gltf ) {
 
 
 				gltf.scene.traverse( function ( object ) {
 				gltf.scene.traverse( function ( object ) {
+
 					if ( object.material ) {
 					if ( object.material ) {
+
 						// Avoid overdrawing
 						// Avoid overdrawing
 						object.material.side = THREE.FrontSide;
 						object.material.side = THREE.FrontSide;
+		
 					}
 					}
+		
 				} );
 				} );
+		
 				gltf.scene.position.y = 0.1;
 				gltf.scene.position.y = 0.1;
 				scene.add( gltf.scene );
 				scene.add( gltf.scene );
 
 
@@ -118,10 +123,9 @@
 
 
 			// blend SSR over beauty
 			// blend SSR over beauty
 		
 		
-			const outputNode = blendColor( scenePassColor, ssrPass );
-
-			postProcessing.outputNode = smaa( outputNode );
+			const outputNode = smaa( blendColor( scenePassColor, ssrPass ) );
 
 
+			postProcessing.outputNode = outputNode;
 
 
 			//
 			//
 
 

粤ICP备19079148号