Advertisement

Atmospheric Scattering

Started by April 11, 2022 08:15 PM
0 comments, last by Toastmastern 2 years, 9 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