Creating a GLSL Library
ConclusionHopefully this article will give you an idea of how to write shader libraries. With the enclosed libraries you could combine Lighting and Texturing into a single pass. You could change the lighting model from Phong to something else, such as Toon Shading. The possibilities with GLSL are enormous. Just remember if you come up with something really cool to share with the rest of us. Thanks for reading. ReferencesGLSL Tutorial - Lighthouse3D August 2007 Useful LinksShaderGen - Fixed Functionality Shader Generation Tool (used to emulate OpenGL texturing) |