From 2ab22aefc8ea5bef1507ae925a55aa9786cb28ef Mon Sep 17 00:00:00 2001 From: James Smith Date: Mon, 6 Jan 2025 09:51:24 +0000 Subject: [PATCH] tweak lighting --- app/javascript/offscreen_renderer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/offscreen_renderer.ts b/app/javascript/offscreen_renderer.ts index 54b1afa09..e86d17c36 100644 --- a/app/javascript/offscreen_renderer.ts +++ b/app/javascript/offscreen_renderer.ts @@ -61,11 +61,11 @@ export class OffscreenRenderer { // Add lighting const gridSizeX = parseInt(this.settings.gridSizeX ?? '10', 10) const gridSizeZ = parseInt(this.settings.gridSizeZ ?? '10', 10) - this.scene.add(new THREE.HemisphereLight(0xffffff, 0x404040)) - const light = new THREE.PointLight(0xffffff, 0.25) + this.scene.add(new THREE.HemisphereLight(0xffffff, 0xcccccc)) + const light = new THREE.DirectionalLight() light.position.set(gridSizeX, 50, gridSizeZ) this.scene.add(light) - const light2 = new THREE.PointLight(0xffffff, 0.25) + const light2 = new THREE.DirectionalLight() light2.position.set(-gridSizeX, 50, gridSizeZ) this.scene.add(light2) // Set up render passes