소스 검색

Update DirectionalLightShadow.html (#23952)

* Update DirectionalLightShadow.html

DirectionalLight only takes two arguments in it's constructor now.

* Update DirectionalLightShadow.html

Co-authored-by: Michael Herzog <[email protected]>
Keith Thomas 3 년 전
부모
커밋
3ee08f5c14
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      docs/api/en/lights/shadows/DirectionalLightShadow.html
  2. 1 1
      docs/api/zh/lights/shadows/DirectionalLightShadow.html

+ 1 - 1
docs/api/en/lights/shadows/DirectionalLightShadow.html

@@ -28,7 +28,7 @@
 		renderer.shadowMap.type = THREE.PCFSoftShadowMap; // default THREE.PCFShadowMap
 
 		//Create a DirectionalLight and turn on shadows for the light
-		const light = new THREE.DirectionalLight( 0xffffff, 1, 100 );
+		const light = new THREE.DirectionalLight( 0xffffff, 1 );
 		light.position.set( 0, 1, 0 ); //default; light shining from top
 		light.castShadow = true; // default false
 		scene.add( light );

+ 1 - 1
docs/api/zh/lights/shadows/DirectionalLightShadow.html

@@ -25,7 +25,7 @@
 		renderer.shadowMap.type = THREE.PCFSoftShadowMap; // default THREE.PCFShadowMap
 
 		//Create a DirectionalLight and turn on shadows for the light
-		const light = new THREE.DirectionalLight( 0xffffff, 1, 100 );
+		const light = new THREE.DirectionalLight( 0xffffff, 1 );
 		light.position.set( 0, 1, 0 ); //default; light shining from top
 		light.castShadow = true; // default false
 		scene.add( light );