You are browsing as a guest. Sign up (or log in) to start making projects!

3h 58m 26s logged

Devlog 7 - I Added bounding boxes and shadows

So I added bounding boxes like I have been wanting to and it was suprisingly easy using the slab method, I also added shadows which gives the coulds so much more depth

So for the bounding boxes I use the slab method which return the entry and exit position of a ray for a grid aligned bounding box for very cheap. It is also easy to see if it doesn’t intersect because the exit position is closer than the entrance position so you can return early.

For the shadows I do another lower quality raymarch for each step in the main raymarch towards the sun to see how much cloud is in the way.

I am also having some problems with the Henyey Greenstein function returning abnormally huge numbers so that is turned off rn while I investigate further.

0
3

Comments 0

No comments yet. Be the first!