Browse Source

Examples: Improved lighting for webgl_buffergeometry_indexed

Mugen87 7 years ago
parent
commit
9137bb7660
1 changed files with 4 additions and 4 deletions
  1. 4 4
      examples/webgl_buffergeometry_indexed.html

+ 4 - 4
examples/webgl_buffergeometry_indexed.html

@@ -62,15 +62,15 @@
 
 
 				//
 				//
 
 
-				var ambientLight = new THREE.AmbientLight( 0xcccccc );
+				var ambientLight = new THREE.AmbientLight( 0x222222 );
 				scene.add( ambientLight );
 				scene.add( ambientLight );
 
 
 				var light1 = new THREE.DirectionalLight( 0xffffff, 0.5 );
 				var light1 = new THREE.DirectionalLight( 0xffffff, 0.5 );
 				light1.position.set( 1, 1, 1 );
 				light1.position.set( 1, 1, 1 );
 				scene.add( light1 );
 				scene.add( light1 );
 
 
-				var light2 = new THREE.DirectionalLight( 0xffffff, 1.5 );
-				light2.position.set( 0, -1, 0 );
+				var light2 = new THREE.DirectionalLight( 0xffffff, 1 );
+				light2.position.set( 0, - 1, 0 );
 				scene.add( light2 );
 				scene.add( light2 );
 
 
 				//
 				//
@@ -139,7 +139,7 @@
 				geometry.addAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) );
 				geometry.addAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) );
 
 
 				var material = new THREE.MeshPhongMaterial( {
 				var material = new THREE.MeshPhongMaterial( {
-					specular: 0xffffff, shininess: 250,
+					specular: 0x111111, shininess: 250,
 					side: THREE.DoubleSide, vertexColors: THREE.VertexColors
 					side: THREE.DoubleSide, vertexColors: THREE.VertexColors
 				} );
 				} );