This commit is contained in:
+2
-2
@@ -8,14 +8,14 @@ RectAreaLightUniformsLib.init();
|
|||||||
* Базовый свет сцены (Ambient + Directional)
|
* Базовый свет сцены (Ambient + Directional)
|
||||||
*/
|
*/
|
||||||
export function setupLights(scene) {
|
export function setupLights(scene) {
|
||||||
const ambient = new THREE.AmbientLight(0xffffff, 0.8);
|
const ambient = new THREE.AmbientLight(0xffffff, 0.3);
|
||||||
scene.add(ambient);
|
scene.add(ambient);
|
||||||
|
|
||||||
const key = new THREE.DirectionalLight(0xffffff, 0.2);
|
const key = new THREE.DirectionalLight(0xffffff, 0.2);
|
||||||
key.position.set(0, 0, 0);
|
key.position.set(0, 0, 0);
|
||||||
scene.add(key);
|
scene.add(key);
|
||||||
|
|
||||||
const fill = new THREE.DirectionalLight(0xffffff, 0.2);
|
const fill = new THREE.DirectionalLight(0xffffff, 0.5);
|
||||||
fill.position.set(0, 0, 0);
|
fill.position.set(0, 0, 0);
|
||||||
scene.add(fill);
|
scene.add(fill);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user