Browse Source

hemisphere lights work again.

Ben Houston 9 years ago
parent
commit
ea9f26a981
2 changed files with 3 additions and 3 deletions
  1. 1 1
      examples/webgl_lights_hemisphere.html
  2. 2 2
      src/renderers/shaders/UniformsLib.js

+ 1 - 1
examples/webgl_lights_hemisphere.html

@@ -203,7 +203,7 @@
 
 					morphColorsToFaceColors( geometry );
 
-					var material = new THREE.MeshPhongMaterial( { color: 0xffffff, specular: 0xffffff, shininess: 20, morphTargets: true, vertexColors: THREE.FaceColors, shading: THREE.FlatShading } );
+					var material = new THREE.MeshPhongMaterial( { color: 0xffffff, specular: 0x111111, shininess: 20, morphTargets: true, vertexColors: THREE.FaceColors, shading: THREE.FlatShading } );
 					var mesh = new THREE.Mesh( geometry, material );
 
 					var s = 0.35;

+ 2 - 2
src/renderers/shaders/UniformsLib.js

@@ -84,8 +84,8 @@ THREE.UniformsLib = {
 
 		"hemisphereLights" : { type: "sa", value: [], properties: {
 			"direction": { type: "v3" },
-			"skyColor": { type: "v3" },
-			"groundColor": { type: "v3" }
+			"skyColor": { type: "c" },
+			"groundColor": { type: "c" }
 		} },
 
 		"pointLights" : { type: "sa", value: [], properties: {