domenica 28 giugno 2015

Day 16: Point Lights

Today I managed to light my scene with point lights.

It was harder then i expected because i had a bad bug in my geometry shader, and this bug was not a problem for the directional lights i implemented yesterday, so i didn't notice till now.

However, now they works, but i have to add to those lights color, attenuation and so on, and then i was thinking to make a LightManager to automatically render the scene with each light.

Oh, and now point lights are inefficient, because they are rendered even on pixels they are not influencing


Nessun commento:

Posta un commento