Browse Source

Fixed HemisphereLight example.

Mr.doob 10 years ago
parent
commit
9edf44766a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/webgl_lights_hemisphere.html

+ 2 - 2
examples/webgl_lights_hemisphere.html

@@ -278,12 +278,12 @@
 
 					case 72: /*h*/
 
-					hemiLight.visible = !hemiLight.visible;
+					hemiLight.intensity = 0.6 - hemiLight.intensity;
 					break;
 
 					case 68: /*d*/
 
-					dirLight.visible = !dirLight.visible;
+					dirLight.intensity = 1 - dirLight.intensity;
 					break;
 
 				}