Opengl, Computer Graphics, Shaders, Texture, Shading.
shading. per vertex shading (gouraud shading) In this manner, we calculate illumination inside vertex shader, then pass the varying params to fragment shader. per fragment shading (phong shading) In fragment shading, normals of each vertices are interpolated and then illumination are calculated in