Ratatoskr/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nibu c2858452e7 scene: terrain sky and haze from Void's baked scattering table
Drops the vendored terrain/skyData.ts and the computed azimuth. terrainSky.ts reads src/sky/baked.ts:
sun {elevation_deg, azimuth_deg, color_linear}, ambient_linear, horizon_hex. terrainScatter.ts decodes
baked.scatter and uploads sky_view as an RGB16F 3D texture; SKY_FRAG and GRID_FRAG sample it (README
sampler), the sky for the view ray, the haze for the horizon in the fragment's azimuth.

- Sky: 1 - exp(-exposure * radiance) + night glow (midnight horizon colour, off as the sun nears the
  horizon) + sun disc; +-0.5/255 dither on the 8-bit output.
- Stars fade by sun elevation (starGain: 1 below -12, 0 above -6) instead of a dark-sky gate; the
  field is placed against the midnight gradient.
- ?sun=<deg>&az=<deg> (or the sun option) lights between the two bakes for dusk (skyAtSun).
- Changed numbers, noted in scene/README.md: haze colour is the scattered sky (was the gradient's
  horizon stop), ambient is ambient_linear as baked (was gradient zenith x 0.25 x night lift up to 4),
  HAZE_K unchanged at 0.0004.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 23:40:43 +00:00
..
app scene: terrain sky and haze from Void's baked scattering table 2026-11-07 23:40:43 +00:00
client Post session info to service worker instead of asking from sw (#2605) 2026-02-14 17:11:36 +11:00
sky sky: bake an atmospheric-scattering table (half float) for a WebGL2 sky shader 2026-11-07 20:57:22 +00:00
types Estate: stewards from the hierarchy's Space child content, joins wait for the store, room finder on search, Create room and Join with address, Elsewhere group, invited DMs 2026-10-31 17:46:11 +01:00
util Remove unused javascript (#2470) 2025-08-29 19:34:52 +10:00
colors.css.ts sky: Midnight Sky and Noonday Sky baked from sun.js (albedo x irradiance) 2026-11-06 20:57:31 +00:00
config.css.ts fix font-weight in dark theme with unsupported fonts (#1964) 2024-09-22 22:31:32 +10:00
ext.d.ts feat: URL navigation in auth (#1603) 2024-01-21 18:20:56 +05:30
gamecult.css.ts GameCult theme, steward-grouped project rooms, preview base override 2026-10-31 05:00:32 +01:00
index.css sky: Midnight Sky and Noonday Sky baked from sun.js (albedo x irradiance) 2026-11-06 20:57:31 +00:00
index.tsx GameCult theme, steward-grouped project rooms, preview base override 2026-10-31 05:00:32 +01:00
sky.css.ts sky: Midnight Sky and Noonday Sky baked from sun.js (albedo x irradiance) 2026-11-06 20:57:31 +00:00
sw-session.ts Post session info to service worker instead of asking from sw (#2605) 2026-02-14 17:11:36 +11:00
sw.ts Request session info from sw if missing (#2664) 2026-02-21 17:51:27 +11:00