Feature: basic fog
This commit is contained in:
@@ -56,4 +56,9 @@ export function createSceneObjects() {
|
||||
}
|
||||
|
||||
state.scene.add(hemisphereLight);
|
||||
|
||||
// Add fog for depth and atmosphere
|
||||
const fogColor = 0x040409;
|
||||
state.scene.fog = new THREE.FogExp2(fogColor, 0.04);
|
||||
state.scene.background = new THREE.Color(fogColor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user