Browse Source

Examples: Clean up.

Mugen87 4 years ago
parent
commit
ab5edd6504
2 changed files with 2 additions and 2 deletions
  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 texture = loader.load( './textures/uv_grid_opengl.jpg' );
 
-				const geometryBox = new THREE.BoxBufferGeometry();
+				const geometryBox = new THREE.BoxGeometry();
 				const materialBox = new THREE.MeshBasicMaterial();
 				materialBox.colorNode = new TextureNode( texture );
 

+ 1 - 1
examples/webgpu_sandbox.html

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