浏览代码

Examples: Clean up. (#28929)

Nathan Bierema 1 年之前
父节点
当前提交
b47c7e7bcb
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      examples/webgpu_postprocessing_3dlut.html

+ 4 - 5
examples/webgpu_postprocessing_3dlut.html

@@ -103,9 +103,9 @@
 						lutMap[ name ] = lutCubeLoader.loadAsync( 'luts/' + name );
 
 					} else if ( /\LUT$/i.test( name ) ) {
-			
+
 						lutMap[ name ] = lutImageLoader.loadAsync( `luts/${name}.png` );
-			
+
 					} else {
 
 						lutMap[ name ] = lut3dlLoader.loadAsync( 'luts/' + name );
@@ -144,9 +144,8 @@
 				const scenePass = pass( scene, camera );
 				const outputPass = renderOutput( scenePass );
 
-				lutPass = outputPass.lut3D();
-				lutPass.lutNode = texture3D( lutMap[ params.lut ] );
-				lutPass.intensityNode = uniform( 1 );
+				const lut = lutMap[ params.lut ];
+				lutPass = outputPass.lut3D( texture3D( lut.texture3D ), lut.texture3D.image.width, uniform( 1 ) );
 
 				postProcessing.outputNode = lutPass;