Procedural Sky System with Moon Phases
https://playground.babylonjs.com/#UZX1TR#12
A bunch of my math is off on this but it works for the most part. Need to fix the moon zenith and the color mixing, plus expose a bunch of hardcoded stuff in the shader and add clouds n things… but yeah.
I keep running across these things as Im digging around PGs looking for example code for my work. Forgot about quite a few of them.