Opengl, Computer Graphics, Shaders, Texture, Shading.
fragment shader based on the varying params ‘normal’ For shading we need Normals, Material properties and Light-related information. 1. Normalization Lighting calculations can be computed using dot prodcut of Normal vector and light direction vector. At this moment, unit vectors can simplify