Skip to content

Commit

Permalink
Update shadow.html
Browse files Browse the repository at this point in the history
  • Loading branch information
stemkoski committed Oct 22, 2023
1 parent 8f7a8e3 commit 08f31e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shadow.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
let light = new THREE.PointLight( 0xffffff, 1, 100 );
light.position.set( 0,4,0 ); // default; light shining from top
light.castShadow = true;
light.shadow.mapSize = new THREE.Vector2(2048, 2048); // default 512
light.shadow.radius = 5
light.shadow.blurSamples = 25
sceneGroup.add( light );

let lightSphere = new THREE.Mesh(
Expand Down

0 comments on commit 08f31e5

Please sign in to comment.