Horizon SkyDome Sun Shader
3 replies to this topic
Members - Reputation: 951
Posted 30 March 2012 - 07:58 AM
How accurate are you aiming for, here? I think the Preetham sky model is still pretty popular and I know that there's a spherical harmonics-based projection that's also been worked out if you want to get some pretty sexy model lighting to go with.
clb: At the end of 2012, the positions of jupiter, saturn, mercury, and deimos are aligned so as to cause a denormalized flush-to-zero bug when computing earth's gravitational force, slinging it to the sun.
Members - Reputation: 182
Posted 30 March 2012 - 08:37 PM
Awhile back I started to come up with a 'close enough' approach to rendering the sun in the sky. http://matt328.wordpress.com/category/xna/ These two posts here try to detail what I've done. It's nowhere near the aforementioned models and pretty incomplete, but if you're just looking for somewhere to start your own implementation, you might find them interesting reads.