Enable shadow casting for the sun light in app.js
This commit is contained in:
@@ -120,7 +120,7 @@ texLoader.load('assets/images/hdri/environment.jpg', tex => {
|
||||
// ---- Licht, Shadow-Only-Material, Loader ----
|
||||
const sun = new THREE.DirectionalLight(0xFFA230, 2);
|
||||
sun.position.set(21, -25, 30);
|
||||
sun.castShadow = !IS_MOBILE;
|
||||
sun.castShadow = true;
|
||||
sun.shadow.mapSize.width = 2048;
|
||||
sun.shadow.mapSize.height = 2048;
|
||||
sun.shadow.camera.near = 1;
|
||||
|
||||
Reference in New Issue
Block a user