浏览代码

Merge pull request #12448 from vidartf/patch-1

Docs: Fix SpotLightShadow.camera.fov default value
Mr.doob 7 年之前
父节点
当前提交
ff26258a7b
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7 3
      docs/api/lights/shadows/SpotLightShadow.html

+ 7 - 3
docs/api/lights/shadows/SpotLightShadow.html

@@ -70,9 +70,13 @@ scene.add( helper );
 		 The light's view of the world. This is used to generate a depth map of the scene; objects behind
 		 The light's view of the world. This is used to generate a depth map of the scene; objects behind
 		 other objects from the light's perspective will be in shadow.<br /><br />
 		 other objects from the light's perspective will be in shadow.<br /><br />
 
 
-		 The default is a  [page:PerspectiveCamera] with [page:PerspectiveCamera.fov fov] of 90,
-	  [page:PerspectiveCamera.aspect aspect] of 1, [page:PerspectiveCamera.near near]
-		clipping plane at 0.5 and	[page:PerspectiveCamera.far far] clipping plane at 500.
+		 The default is a  [page:PerspectiveCamera] with [page:PerspectiveCamera.near near] clipping plane at 0.5.
+		 The [page:PerspectiveCamera.fov fov] will track the [page:SpotLight.angle angle] property of the owning
+		 [page:SpotLight SpotLight] via the [page:SpotLightShadow.update update] method. Similarly, the 
+		 [page:PerspectiveCamera.aspect aspect] property will track the aspect of the
+		 [page:LightShadow.mapSize mapSize]. If the [page:SpotLight.distance distance] property of the light is 
+		 set, the [page:PerspectiveCamera.far far] clipping plane will track that, otherwise it defaults to 500.
+		 
 	 </div>
 	 </div>
 
 
 	 <h3>[property:Boolean isSpotLightShadow]</h3>
 	 <h3>[property:Boolean isSpotLightShadow]</h3>