Browse Source

3D Texture example Minor Clean up

Takahiro 6 years ago
parent
commit
2a753d29f1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/webgl_materials_texture_3d.html

+ 2 - 2
examples/webgl_materials_texture_3d.html

@@ -111,8 +111,6 @@
 
 				scene = new THREE.Scene();
 
-				var geometry = new THREE.PlaneBufferGeometry( planeWidth, planeHeight );
-
 				// width 256, height 256, depth 109, 8-bit, zip archived raw data
 
 				new THREE.FileLoader()
@@ -139,6 +137,8 @@
 						fragmentShader: document.getElementById( 'fs' ).textContent.trim()
 					} );
 
+					var geometry = new THREE.PlaneBufferGeometry( planeWidth, planeHeight );
+
 					mesh = new THREE.Mesh( geometry, material );
 
 					scene.add( mesh );