The result adaptation on codepen for futur use :
modifications :
- use PlaneGeometry instead of BoxGeometry for ground
- set data.lightfar to 500 instead of 5000
- increase shadowMapSize to 2048 (better quality) and normaly no shaking shadows
- set : renderer.setPixelRatio(Math.max(1, window.devicePixelRatio / 2)) instead of renderer.setSize(window.innerWidth, window.innerHeight);
;