Skip to content

Commit e6a9753

Browse files
keiththomas1Mugen87
authored andcommitted
Update DirectionalLightShadow.html (mrdoob#23952)
* Update DirectionalLightShadow.html DirectionalLight only takes two arguments in it's constructor now. * Update DirectionalLightShadow.html Co-authored-by: Michael Herzog <[email protected]>
1 parent 73d26ef commit e6a9753

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api/en/lights/shadows/DirectionalLightShadow.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h2>Code Example</h2>
2828
renderer.shadowMap.type = THREE.PCFSoftShadowMap; // default THREE.PCFShadowMap
2929

3030
//Create a DirectionalLight and turn on shadows for the light
31-
const light = new THREE.DirectionalLight( 0xffffff, 1, 100 );
31+
const light = new THREE.DirectionalLight( 0xffffff, 1 );
3232
light.position.set( 0, 1, 0 ); //default; light shining from top
3333
light.castShadow = true; // default false
3434
scene.add( light );

docs/api/zh/lights/shadows/DirectionalLightShadow.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2>代码示例</h2>
2525
renderer.shadowMap.type = THREE.PCFSoftShadowMap; // default THREE.PCFShadowMap
2626

2727
//Create a DirectionalLight and turn on shadows for the light
28-
const light = new THREE.DirectionalLight( 0xffffff, 1, 100 );
28+
const light = new THREE.DirectionalLight( 0xffffff, 1 );
2929
light.position.set( 0, 1, 0 ); //default; light shining from top
3030
light.castShadow = true; // default false
3131
scene.add( light );

0 commit comments

Comments
 (0)