Log inGet started
Package

PaintedSkies.module

README.md

PaintedSkies

The paintedSkies API: require("~paintedSkies.PaintedSkies").

  • use(id, { transition?, keepOverrides? }) swaps the whole sky for every player by setting the synced preset of the scene's PaintedSky (spawning a synced one if the scene has none). Returns false for an unknown id.
  • presets() lists every skyPreset id; preset(id) resolves one.
  • current() answers { preset, values, overrides }.
  • set(overrides) replaces preset fields on top of the preset, shared.
  • toProperties(values) turns preset values into the sky shader's properties; shownProperties() is what is on the material now.

Internally the PaintedSky component calls attach, show, step and detach. The sky is ONE runtime material (paintedSkies.sky) bound once; preset changes and cross-fades push property values onto it, never swapping the material, which keeps runtime changes visible despite engine issue #4701. With matchLighting, show also sets the scene's sun and ambient light.