GL_NORMALIZE and is it needed with GLSL

Do I need to call GL_NORMALIZE when calling glScale still with GLSL? Or when vec3 normal = normalize(gl_NormalMatrix * gl_Normal); is called does that solve that issue?

GL_NORMALIZE doesn’t work with shaders. If you use shaders, you have to normalize yourself.

Ok got it. So what functions from FFP are left that you need to use with GLSL?
Alpha testing doesn’t work with shaders correct??
What about blending?

Both alpha testing and blending still work when using shaders, they’ll both get done after the pixel shader.

Go read the spec (3.11.2 Shader Execution). It explicitly tells you which parts of the fixed function pipeline are disabled when you have a fragment shader bound.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.