Skip to content

Commit a13a10a

Browse files
authored
client: use static world shadows
Currently very performance heavy to have dynamic shadows for everything so disabling for now, meaning: No player shadows until somebody bake map shadow into texture light map or we switch to webgpu and use selective lights for world and player layer
1 parent 57d8a2a commit a13a10a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

www/assets/js/ModelRepository.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ export class ModelRepository {
4949
sun.shadow.mapSize.width = 4096
5050
sun.shadow.mapSize.height = 4096
5151
sun.shadow.bias = -0.00018
52+
sun.shadow.autoUpdate = false
53+
sun.shadow.needsUpdate = true
5254
sun.shadow.camera.near = 3000
5355
sun.shadow.camera.far = 15500
5456
sun.shadow.camera.left = -5000

0 commit comments

Comments
 (0)