|
@@ -24,7 +24,6 @@
|
|
|
<p>
|
|
|
[example:webgl_lights_pointlights lights / pointlights ]<br />
|
|
|
[example:webgl_lights_pointlights2 lights / pointlights2 ]<br />
|
|
|
- [example:webgldeferred_animation animation ]<br />
|
|
|
[example:webgl_effects_anaglyph effects / anaglyph ]<br />
|
|
|
[example:webgl_geometry_text geometry / text ]<br />
|
|
|
[example:webgl_lensflares lensflares ]
|
|
@@ -46,7 +45,7 @@ scene.add( light );
|
|
|
[page:Number distance] - 这个距离表示从光源到光照强度为0的位置。
|
|
|
当设置为0时,光永远不会消失(距离无穷大)。缺省值 0.<br />
|
|
|
[page:Float decay] - 沿着光照距离的衰退量。缺省值 1。
|
|
|
-
|
|
|
+
|
|
|
在 [page:WebGLRenderer.physicallyCorrectLights physically correct] 模式中,decay = 2。<br /><br />
|
|
|
|
|
|
创建一个新的点光源(PointLight)。
|
|
@@ -75,7 +74,7 @@ scene.add( light );
|
|
|
光功率<br />
|
|
|
在 [page:WebGLRenderer.physicallyCorrectLights physically correct] 模式中,
|
|
|
表示以"流明(光通量单位)"为单位的光功率。 缺省值 - *4Math.PI*。 <br /><br />
|
|
|
-
|
|
|
+
|
|
|
该值与 [page:.intensity intensity] 直接关联
|
|
|
<code>
|
|
|
power = intensity * 4π
|
|
@@ -86,9 +85,9 @@ scene.add( light );
|
|
|
<h3>[property:LightShadow shadow]</h3>
|
|
|
<p>
|
|
|
[page:LightShadow]用与计算此光照的阴影。<br /><br />
|
|
|
-
|
|
|
+
|
|
|
此对象的摄像机被设置为 [page:PerspectiveCamera.fov fov] 为90度,[page:PerspectiveCamera.aspect aspect]为1
|
|
|
- ,近裁剪面 [page:PerspectiveCamera.near near] 为0,远裁剪面[page:PerspectiveCamera.far far]
|
|
|
+ ,近裁剪面 [page:PerspectiveCamera.near near] 为0,远裁剪面[page:PerspectiveCamera.far far]
|
|
|
为500的透视摄像机 [page:PerspectiveCamera]。
|
|
|
</p>
|
|
|
|