domenica 12 giugno 2016

Day 132: Bug fixing

A few days ago I noticed there were problems with the shadows when I was disabling them.
The problem was that the last computed shadow was displayed (instead of nothing).

The problem was a little annoying to track down, and it turned out that I was sending a bool to the shader (instead of casting it to an int), and this generated an undefined behaviour.

Now everything works fine.

Nessun commento:

Posta un commento