Hello Guys.
For flat shading implementation I used to calculate the colors in the vertex shader, and passed them to the fragment shader, which took care of the rest...
Now I want to apply the phong model. I guess I should pass the vertices values and the normals to the fragment shader to be interpolated and only then apply the lighting equation?
BTW: Is there any way I can control the interpolation using shaders?
Thanks,
Heinrich



