jwe
05-04-2005, 08:40 PM
I'm a beginner in GLSL, and have some experience in OpenGL programming. I did texture mapping, light source shading in OpenGL, I'm satisfied with the texture mapping but not happy with the built-in Gouraud shading. So I want to implement Phong shading using GLSL.
My question is can I just attach a "fp" GLSL program to realize the Phong shading effect and leave my texture mapping code in the original OpenGL program unchanged? Thanks.
My question is can I just attach a "fp" GLSL program to realize the Phong shading effect and leave my texture mapping code in the original OpenGL program unchanged? Thanks.