CG Shaders – Pixel Lighting and Normal Maps

This one is a big change compared to the last few shaders i’ve posted. Because normal maps effect the lighting and they must be read in the pixel shader, pixel lighting is required. This means that nearly all the work previously done must be relocated from the vertex to the pixel shaders. It also is […]