Opengl, Computer Graphics, Shaders, Texture, Shading.
ambientProduct + diffuse + specular; color.a = 1.0; } fragment shader in vec4 color; void main() { gl_FragColor = color; } Texture mapping in shader There are three basic steps to applying a texture specify texture in application - read or generate image (ex. read png file, generate depthMap