🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Atmospheric Scattering

Started by
0 comments, last by Toastmastern 2 years, 2 months ago

So I have been trying to implement atmospheric scattering into my engine based on Sebastian Lagues video but by using HLSL instead.

To far this is my result

https://imgur.com/66D6B9a

I have double checked my RaySphere function and it is working as intended. I'm not sure tho if the light calculations are wrong or what it is that could be wrong. I'm running out of ideas and turning to the internet for aid and ideas on what I could check moving forward with my search for the issue.

Here are the values of my constant buffers if that is of any help. I've hardcoded a few values for now, for example the density fall off value.

Here is the shader:
https://pastebin.com/esS6bgmN

Thanks

This topic is closed to new replies.

Advertisement