Hello, I haven
t posted anything for too long time :). So, here I present you a shader ive recently been busy with.
It is based on the chapter “Accurate Atmospheric Scattering” of the “GPU Gems 2” I found here: http://http.developer.nvidia.com/GPUGems2/gpugems2_chapter16.html
Scene contains 4 spheres: 2 for ground & 2 for atmosphere, as there are 4 shaders (Ground from Space/Atmopshere & Skies from Space/Atmosphere).
Feel free to use this in your own projects, but the setup may be a headache.
Moving, scaling etc. operations of the spheres will cause strangeness
Yet to do:
• easier setup
• skydome only (if you dont need a view from space)
• cloud coverage
• normal-mapped lighting for ground
• ocean material
and a blend :
wasd - move camera
mouse movement - mouselook
left mouse button&mouse movement - grab&move sun
mousewheel up/down - scattering exposure
Up/Down - scattering samples