Today I finished the third and last kind of lights, and it was easier than the other ones, because the model matrix of the bounding box was not an issue (always a fullscreen quad), and the rest was similar to directional lights.
I also fixed a few things and improved little things in the engine that were bothering me.
In the end I refactored the whole scene and moved all the code to scripts. Now the main scene only adds a script to the central light, and a script to the floor. Everything else is created in their start methods, and the input and update handled by those scripts as well.
In the screenshot there are two different shadows, barely visible, and the rotates following their gameobjects.

Nessun commento:
Posta un commento