Opengl, Computer Graphics, Shaders, Texture, Shading.
ambientProduct, diffuseProduct, specularProduct uniform mat4 modelView uniform mat4 projection; uniform vec4 lightPos; uniform float shininess; void main() { // Transform vertex position into eye coordinates. vec3 pos = (modelView * vPosition).xyz; // swizzling component; vec3 L =