MasDennis/Rajawali — pull request #421 by Davhed (2013-02-24 01:18:15+00:00)
Title: Gouraud light color

Reason

`GouraudMaterial` was not utilizing `uLightColor` when it could be. This functionality was previously added to `PhongMaterial` and `DiffuseMaterial`.

Method

A new varying type called `vLightColor` was added, and uses a similar calculation as `PhongMaterial` except done per-vertex. A varying was used so that light color could be computed with the sampled texture fragment.

Usage

Simply call `myLight.setColor(myLightColor)`. See `ALight` for more information.