Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(society): light the island at pi-scaled intensities - physical lights divide by pi

rubenluetke10-beepa088646da278
diff --git a/jarvis/ui/web/frontend/src/components/society/world/worldPalette.ts b/jarvis/ui/web/frontend/src/components/society/world/worldPalette.ts
index 23385053fc..10e57d2139 100644
--- a/jarvis/ui/web/frontend/src/components/society/world/worldPalette.ts
+++ b/jarvis/ui/web/frontend/src/components/society/world/worldPalette.ts
@@ -44,9 +44,14 @@ export const SKY = {
hemiSky: "#d6ecff",
hemiGround: "#7f9c5a",
sun: "#fff1d6",
- /** Directional and hemisphere intensities are plain multipliers in three r155+ — no π. */
- sunIntensity: 0.8,
- hemiIntensity: 0.78,
+ /**
+ * three r155+ lights are physical: Lambert/Toon divide irradiance by π, so a
+ * directional or hemisphere intensity of π lights a surface to exactly its
+ * colour. Lit horizontal ground lands just under 1.0 with these two; shade
+ * keeps ~55 % — the Clash-of-Clans contrast without clipping white walls.
+ */
+ sunIntensity: 0.72 * Math.PI,
+ hemiIntensity: 0.62 * Math.PI,
/** Direction the sun shines FROM (unit-ish vector; warm afternoon, south-west). */
sunFrom: [-60, 90, 45] as const,
};