浏览代码

Example webgpu_portal: cleanup

sunag 1 年之前
父节点
当前提交
beecde0351
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      examples/webgpu_portal.html

+ 3 - 2
examples/webgpu_portal.html

@@ -118,16 +118,17 @@
 					const modelMain = createModel();
 					const modelPortal = createModel( colorNode );
 
-					//
+					// model portal
 
 					sceneMain.add( modelMain );
 					scenePortal.add( modelPortal );
 
 				} );
 
-				//
+				// portal
 
 				const geometry = new THREE.PlaneGeometry( 1.7, 2 );
+
 				const material = new MeshBasicNodeMaterial();
 				material.colorNode = pass( scenePortal, camera ).context( { getUV: () => viewportTopLeft } );
 				material.opacityNode = uv().distance( .5 ).remapClamp( .3, .5 ).oneMinus();