I'm not really familiar with this whole shader stuff but does it make a difference if you move the fixed function stuff in front of the shader code?