Browse Source

Fixed HemisphereLight example.

Mr.doob 10 năm trước cách đây
mục cha
commit
9edf44766a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;
 
 				}