Explorar o código

Fixed HemisphereLight example.

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
9edf44766a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;
 
 				}