shaders use color attribute to tint diffuse material color;
removed some unnecessary gl calls;
renamed some vector utility functions