Skip to content

Commit a9a9786

Browse files
authored
Examples: Clean up. (#31485)
1 parent b7c5cc9 commit a9a9786

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed
208 Bytes
Loading

examples/webgl_animation_walk.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@
7676

7777
camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 0.1, 100 );
7878
camera.position.set( 0, 2, - 5 );
79-
//camera.lookAt( 0, 1, 0 );
80-
8179

8280
clock = new THREE.Clock();
8381

@@ -99,8 +97,7 @@
9997
cam.bottom = cam.left = - 2;
10098
cam.near = 3;
10199
cam.far = 8;
102-
dirLight.shadow.bias = - 0.005;
103-
dirLight.shadow.radius = 4;
100+
dirLight.shadow.mapSize.set( 1024, 1024 );
104101
followGroup.add( dirLight );
105102
followGroup.add( dirLight.target );
106103

@@ -113,6 +110,7 @@
113110
renderer.toneMapping = THREE.ACESFilmicToneMapping;
114111
renderer.toneMappingExposure = 0.5;
115112
renderer.shadowMap.enabled = true;
113+
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
116114
container.appendChild( renderer.domElement );
117115

118116
orbitControls = new OrbitControls( camera, renderer.domElement );
@@ -205,7 +203,6 @@
205203

206204
object.castShadow = true;
207205
object.receiveShadow = true;
208-
object.material.shadowSide = THREE.DoubleSide;
209206
//object.material.envMapIntensity = 0.5;
210207
object.material.metalness = 1.0;
211208
object.material.roughness = 0.2;

0 commit comments

Comments
 (0)