Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Ground
- //const planeGeometry = new THREE.PlaneGeometry( 60, 60 );
- const planeGeometry = new THREE.PlaneGeometry( 80, 80 );
- // ... other code snippet
- plane.receiveShadow = true;
- // ... other code snippet
- // Set up stage light
- // ... other code snippet
- const pointLight = new THREE.PointLight( 0xccffcc, 1, 100 );
- pointLight.castShadow = true;
- pointLight.position.set( -30, 30, 30 );
- scene.add( pointLight );
- // Set up renderer
- // ... other code snippet
- // VVV Add these two lines
- renderer.shadowMap.enabled = true;
- renderer.shadowMap.type = THREE.PCFSoftShadowMap;
Add Comment
Please, Sign In to add comment