celestiary / web

Astronomical simulator of solar system and local stars
https://celestiary.github.io/
42 stars 2 forks source link

Improve star surfaces #21

Open pablo-mayrgundter opened 3 years ago

pablo-mayrgundter commented 3 years ago

See the Skydance production logo for a beautiful sun rendering.

pablo-mayrgundter commented 3 years ago

The current star palette is copied and verbose.. but it does take a temperature parameter:

https://github.com/pablo-mayrgundter/celestiary/blob/master/js/shaders/star.frag#L138

this potentially looks like a huge improvement:

https://www.iquilezles.org/www/articles/palettes/palettes.htm