🕯️Updates scene ligthing

This commit is contained in:
Rune Harlyk
2024-08-17 20:18:36 +02:00
committed by Rune Harlyk
parent 0e89643555
commit 8afe3424d3
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -149,8 +149,8 @@
.addRenderer({ antialias: true, canvas, alpha: true })
.addPerspectiveCamera({ x: -0.5, y: 0.5, z: 1 })
.addOrbitControls(8, 30, orbit)
.addDirectionalLight({ x: 10, y: 20, z: 10, color: 0xffffff, intensity: 0.9 })
.addAmbientLight({ color: 0xffffff, intensity: 0.6 })
.addDirectionalLight({ x: 10, y: 20, z: 10, color: 0xffffff, intensity: 3 })
.addAmbientLight({ color: 0xffffff, intensity: 0.5})
.addFogExp2(0xcccccc, 0.015)
.addModel($model)
.addTransformControls(sceneManager.model)
+2 -2
View File
@@ -106,7 +106,7 @@ export default class SceneBuilder {
mieCoefficient: 0.005,
mieDirectionalG: 0.7,
elevation: sunCalculator.calculateSunElevation(),
azimuth: 180,
azimuth: 200,
exposure: this.renderer.toneMappingExposure
};
const uniforms = this.sky.material.uniforms;
@@ -330,7 +330,7 @@ export default class SceneBuilder {
shininess: 10,
color: highlightColor,
emissive: highlightColor,
emissiveIntensity: 0.25
emissiveIntensity: 0.9
});
const dragControls = new PointerURDFDragControls(