mercoledì 26 agosto 2015

Day 54: No more Lights

Today I finally finished the lighting system.

I Found out that the bug I had yesterday was due to the stencil buffer. I wasn't able to solve it, and so, since I read online that very often it actually makes performances worse, I remove it for good.

Then I implemented the bounding boxes for spot lights. They rotate and they grow in width depending on the cutoff value. In the picture there is an example of a bounding box perfectly aligned with its light. This allows to draw way less pixels for each spot light.

With this, I declared finished all my work on lights.


Nessun commento:

Posta un commento