Forráskód Böngészése

Fixed HemisphereLight example.

Mr.doob 10 éve
szülő
commit
9edf44766a
1 módosított fájl, 2 hozzáadás és 2 törlés
  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;
 
 				}