Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commita2fece03a2

README.md

stars (raster shader)

Draws one star of a catalogue per instance, for the stars render feature: a quad around the pixel the star's direction projects to, whose fragments hold the star's light as a gaussian star_size pixels wide, scaled so the gaussian's sum over the pixels, times each pixel's solid angle, is the star's illuminance. A star below the horizon, behind the camera, or on a pixel the scene's geometry covers (@scene.depth above 0) draws nothing.

Each record of stars is right ascension, declination (radians), visual magnitude and B-V colour index. lux_scale is the scene-light units a magnitude-0 star lights with, extinction the magnitudes the air takes at the zenith, and latitude and sidereal turn the celestial sphere over the world (+Y up, -Z north, +X east).