glShadeModel and glLightModel with GLSL

Hi!
I’m wondering if there’s any point in using glShadeModel and glLightModel functions while using shaders?

I’ve been looking through the docs and failed to get an answer.

I’m asking about OGL 2.1 but I’d be interested if the same applies to the newer versions.

thanks :slight_smile:

Yes, glShadeModel has an effects since this controls how values are interpolated across a triangle.

As for lighting, you are suppose to do the lighting yourself in a vertex shader or fragment shader. All glLight functions are irrelevant including glLightModel.

Yes, glShadeModel has an effects since this controls how values are interpolated across a triangle.

When you don’t explicitly state it in the shader, that is.

Ok. I think I understand. Thanks a lot :slight_smile:

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