Log inGet started
World

Mirage Wells: Desert Dunes, Oasis and Ruins Kit

README.md

DesertSky

The desert's sky. Defines the "desert" sky look for worldClockKit (SKY_LOOK: four palettes that set both the sky and the light the clock casts, with a big moon, many stars and a strong horizon glow), draws the Milky Way over the night sky, and in the WorldClock's skyMode "engine" colours the scene's ProceduralSky from the same palettes (dust-brown in a storm, stars by night) and stops it from driving the sun light itself (the clock does).

local DesertSky = require("desertKit.DesertSky")
require("worldClockKit.kit").Sky.set(DesertSky.LOOK)     -- "desert" (DesertAtmos holds it for you)
DesertSky.MILKY_WAY.intensity = 1.2                       -- brighter galaxy (default 0.9)

The Milky Way is one post pass (shaders/dk_night_sky) on sky pixels only: the view ray becomes coordinates along a tilted great circle and the kit's panorama (textures/dk_milky_way, generated) is added to the sky. Registered at night only. A small material holds the texture on the GPU, since a post pass binds only textures the renderer already holds.