Browse Source

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 years ago
parent
commit
3ee08f5c14

+ 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 );