Another-Game-Engine/AGE — pull request #253 by DorianPinaud (2014-09-29 19:54:19+00:00)
Title: Deffered shading without culling

Multi-light in deffered shading is implemented. But with no stencil culling (this will be for a next time).
Now you can add light with the following command.

auto key = getInstance()->addPointLight();
getInstance()->setPointLight(position, color, range, key);

(the range is a vec3 use to determine the attenuation of light with the following function : x + y * distance + z * z * distance.)

you can also use directly the component PointLight for abstract the code shows above.

exemple :

addComponent(createEntity())->set(postion, color, range);

Note : you can created all number of lights you wants :)