Today i manage to make a big step, which is the introduction of lights in the engine.
Right now it only supports a single directional light, and i'm trying to figure out the best approach to manage multiple lights (of different type too, for example point,directional or spot lights).
The color of a fragment is 20% ambient light and 80% diffuse light, just to show a little of the model even if it is not hit by the light.
In the picture there is the curve i made a couple of days ago, and it is now hit by the light, and in the sky i rendered a big spherical moon which shows pretty well the diffuse light effect.

Nessun commento:
Posta un commento