stars.rasterShader
- README.md799 B
- bindings.yaml1.2 KB
- shader.wgsl4.6 KB
This package holds more than this page lists. See all of its files in its world.
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).