Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
Use two-pass rendering for some shaders to reduce the cost of expensive shaders. Implement some material animations using a shader uniform. Eliminate use of gl_FrontFacing. It's too buggy on ATI/ Macintosh.