Shadows working

Finally, shadow functionality implemented. The code is still a bit messy (but I love refactoring anyways). Two screenshots as a proof (using the new floor object, too):

And because I like youtube, I also generated a small animation, where the y-coordinate of the light source is raised step by step:

Next on the todo list is, after a lot of bug fixing and refactoring, the implementation of phong-shading. This will be a bit more difficult than the other, already implemented, features.

Leave a reply