Ray tracing.

Now I have tested and stable ray tracing on the C++ side. Time to port to GLSL.

 

Still using my hacky shadow tracing method at the moment, but notice that I added in a Lambert calculation for lighting and determining if rays need to be cast in the first place (removes roughly half of the required rays.)

screenshot16

Shadow tracing (beginnings!)

I’m going to have to write an article on this, but here are some screenshots to show what I’ve been working on.

screenshot12

Vertex-based tracing.

screenshot14

Pixel-based tracing. Notice the jagged edges because of my very rough tracing. I’m not going to use this method, but I copy-pasta’d my vertex version just to see how it would look.