Feature: basic fog
This commit is contained in:
parent
4feeab53de
commit
7f2abc635d
@ -56,4 +56,9 @@ export function createSceneObjects() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
state.scene.add(hemisphereLight);
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user