Correcting Lighting on our Grid Snapped Vertex Shader with Geometry Shaders
Β· β 3 min read
Lets fix our grid snapped vertex custom shader by introducing some improved lighting. Because weβre manipulating our objects geometry inside our shader the normals that are used to calculate lighting are incorrect.