Przeglądaj źródła

Changed cubemap and removed light in webgl_loader_gltf example.

Mr.doob 7 lat temu
rodzic
commit
9fde2f14cc
1 zmienionych plików z 4 dodań i 8 usunięć
  1. 4 8
      examples/webgl_loader_gltf.html

+ 4 - 8
examples/webgl_loader_gltf.html

@@ -66,12 +66,12 @@
 				controls.update();
 
 				// envmap
-				var path = 'textures/cube/skyboxsun25deg/';
+				var path = 'textures/cube/Bridge2/';
 				var format = '.jpg';
 				var envMap = new THREE.CubeTextureLoader().load( [
-					path + 'px' + format, path + 'nx' + format,
-					path + 'py' + format, path + 'ny' + format,
-					path + 'pz' + format, path + 'nz' + format
+					path + 'posx' + format, path + 'negx' + format,
+					path + 'posy' + format, path + 'negy' + format,
+					path + 'posz' + format, path + 'negz' + format
 				] );
 
 				scene = new THREE.Scene();
@@ -81,10 +81,6 @@
 				light.position.set( 0, 1, 0 );
 				scene.add( light );
 
-				light = new THREE.DirectionalLight( 0xffffff );
-				light.position.set( -10, 6, -10 );
-				scene.add( light );
-
 				// model
 				var loader = new THREE.GLTFLoader();
 				loader.load( 'models/gltf/DamagedHelmet/glTF/DamagedHelmet.gltf', function ( gltf ) {