So, I was trying to convert the Phong shader seen over at http://www.ozone3d.net/ tutorials section. However when I applied the shader to the objects in the scene (see the .blend file) the material’s diffuse color seemed to have swapped.
There’s a red cube and a gray plane in the scene. But when I start GE the plane is colored red while the cube is… darkish. If I make the plane red and the cube gray then both objects are gray.
Honestly I can’t figure out what’s wrong. Also it seems to only be the diffuse color that’s swapped. If I for example change specularity color/level or hard(shininess) it’ll affect the correct object. Looking at the actual GLSL doesn’t show any problems either that I can see… not that I’m an expert
Here’s the blend file: