prepare environment fog options

This commit is contained in:
2025-12-17 21:51:28 +02:00
parent 887e3a2114
commit e413418f9f
+3
View File
@@ -62,6 +62,9 @@ class GameEngine extends THREE.EventDispatcher{
// hemiLight.position.multiplyScalar( 0.20 );
scene.add(dirLight);
// scene.fog = new THREE.Fog(0xbbaaaa, 11, 33);
// scene.fog = new THREE.FogExp2(0xaaaaaa, 0.037);
dirLight.castShadow = true;
dirLight.shadow.mapSize.width = 1024;