diff --git a/src/kiri/main.js b/src/kiri/main.js index 55572f96..c9132089 100644 --- a/src/kiri/main.js +++ b/src/kiri/main.js @@ -1886,11 +1886,11 @@ SPACE.sky.set({ color: 0, ambient: { intensity: 0.08 } }); DOC.body.classList.add('dark'); } else { - SPACE.platform.set({ light: 0.09 }); + SPACE.platform.set({ light: 0.12 }); SPACE.platform.setFont({rulerColor:'#333333'}); SPACE.platform.setGrid(gridMajor, gridMinor, 0x999999, 0xcccccc); SPACE.platform.opacity(0.2); - SPACE.sky.set({ color: 0xffffff, ambient: { intensity: 0.9 } }); + SPACE.sky.set({ color: 0xffffff, ambient: { intensity: 0.4 } }); DOC.body.classList.remove('dark'); } SPACE.platform.setSize(); diff --git a/src/main/mesh.js b/src/main/mesh.js index e037fc59..f221a4c6 100644 --- a/src/main/mesh.js +++ b/src/main/mesh.js @@ -476,9 +476,10 @@ function set_darkmode(dark) { } sky.set({ color: dark ? 0 : 0xffffff, - ambient: { intensity: dark ? 0.6 : 1 } + ambient: { intensity: dark ? 0.4 : 0.9 } }); platform.set({ + light: dark ? 0.05 : 0.05, grid: dark ? { colorMajor: 0x666666, colorMinor: 0x333333, @@ -487,6 +488,7 @@ function set_darkmode(dark) { colorMinor: 0xeeeeee, }, }); + platform.setSize(); for (let m of model.list()) { m.normals({ refresh: true }); } diff --git a/src/moto/space.js b/src/moto/space.js index c69bacc6..e71dbfde 100644 --- a/src/moto/space.js +++ b/src/moto/space.js @@ -242,28 +242,33 @@ for (let l of lights || []) { SCENE.remove(l); } - x *= 1.5; y *= 1.5; z *= 1.5; + x *= 1.1; y *= 1.1; z *= 1.1; // add new let x0 = -x/2, y0 = -y/2, z0 = 0; let x1 = x/2, y1 = y/2, z1 = z / 2, z2 = z; lights = [ - addLight( 0, y0, z0, lightIntensity), - addLight( 0, y1, z0, lightIntensity), - addLight( x0, 0, z0, lightIntensity), - addLight( x1, 0, z0, lightIntensity), + addLight( x0, y0, z1, lightIntensity * 2.5), + addLight( x0, y1, z1, lightIntensity * 2.0), + addLight( x1, y1, z1, lightIntensity * 2.5), + addLight( x1, y0, z1, lightIntensity * 2.0), - addLight( x0, y0, z1, lightIntensity * 1.5), - addLight( x0, y1, z1, lightIntensity / 1.5), - addLight( x1, y1, z1, lightIntensity * 1.5), - addLight( x1, y0, z1, lightIntensity / 1.5), + // addLight( 0, y0, z0, lightIntensity * 1.2), + // addLight( 0, y1, z0, lightIntensity * 0.8), + // addLight( x0, 0, z0, lightIntensity * 1.2), + // addLight( x1, 0, z0, lightIntensity * 0.8), - addLight( x0, y0, -z1, lightIntensity / 1.5), - addLight( x0, y1, -z1, lightIntensity), - addLight( x1, y1, -z1, lightIntensity / 1.5), - addLight( x1, y0, -z1, lightIntensity), + addLight( x0, y0, z0, lightIntensity * 0.8), + addLight( x0, y1, z0, lightIntensity * 1.2), + addLight( x1, y1, z0, lightIntensity * 0.8), + addLight( x1, y0, z0, lightIntensity * 1.2), - addLight( 0, 0, z2, lightIntensity * 2), - addLight( 0, 0, -z2, lightIntensity / 1), + addLight( x0, y0, -z1, lightIntensity * 0.5), + addLight( x0, y1, -z1, lightIntensity * 0.2), + addLight( x1, y1, -z1, lightIntensity * 0.5), + addLight( x1, y0, -z1, lightIntensity * 0.2), + + addLight( 0, 0, z2, lightIntensity * 0.8), + addLight( 0, 0, -z2, lightIntensity * 0.8), ]; }