浏览代码

Examples: Clean up.

Mugen87 4 年之前
父节点
当前提交
ab5edd6504
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/webgpu_rtt.html
  2. 1 1
      examples/webgpu_sandbox.html

+ 1 - 1
examples/webgpu_rtt.html

@@ -54,7 +54,7 @@
 				const loader = new THREE.TextureLoader();
 				const loader = new THREE.TextureLoader();
 				const texture = loader.load( './textures/uv_grid_opengl.jpg' );
 				const texture = loader.load( './textures/uv_grid_opengl.jpg' );
 
 
-				const geometryBox = new THREE.BoxBufferGeometry();
+				const geometryBox = new THREE.BoxGeometry();
 				const materialBox = new THREE.MeshBasicMaterial();
 				const materialBox = new THREE.MeshBasicMaterial();
 				materialBox.colorNode = new TextureNode( texture );
 				materialBox.colorNode = new TextureNode( texture );
 
 

+ 1 - 1
examples/webgpu_sandbox.html

@@ -106,7 +106,7 @@
 
 
 				// data texture
 				// data texture
 
 
-				const geometryPlane = new THREE.PlaneBufferGeometry();
+				const geometryPlane = new THREE.PlaneGeometry();
 				const materialPlane = new THREE.MeshBasicMaterial();
 				const materialPlane = new THREE.MeshBasicMaterial();
 				materialPlane.colorNode = new OperatorNode( '+', new TextureNode( createDataTexture() ), new ColorNode( new THREE.Color( 0x0000FF ) ) );
 				materialPlane.colorNode = new OperatorNode( '+', new TextureNode( createDataTexture() ), new ColorNode( new THREE.Color( 0x0000FF ) ) );
 				materialPlane.opacityNode = new SwitchNode( new TextureNode( dxt5Texture ), 'a' );
 				materialPlane.opacityNode = new SwitchNode( new TextureNode( dxt5Texture ), 'a' );