Parcourir la source

Example webgpu_portal: cleanup

sunag il y a 1 an
Parent
commit
beecde0351
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  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();