mosra/magnum — pull request #33 by miguelishawt (2013-12-14 09:09:51+00:00)
Title: Added colour option for Flat shader even when texturing is enabled

This allows blending to be done (with the texture and colour).

It is quite useful as with this you can change the transparency of an object quite simply*. Also, this allows re-colouring of textures to be done. e.g. if you made a coin image for your game, and wish to have different types of coins without having to re-create assets, you could just re-colour them.

*it might be wise to actually have this as a separate uniform, with the color attribute only having RGB values.