Currently browsing tag

per

5. GLSL Per Pixel Lighting

Tutorial PreviewPreviously, we looked at simuling OpenGL per vertex lighting. Now we are going to learn how to do per pixel lighting, achieving a more realistic lighting effect.

4. GLSL Lighting

Tutorial PreviewGLSL also overwrites the default lighting in OpenGL, but once again, OpenGL passes all lighting information through to us in GLSL for us to use. This tutorial will teach you how to use this information to perform per-vertex lighting, identical to that in standard OpenGL.