GLSL fixed function fragment program replacement
You might be interested in having a look at ShaderGen. From the description: ShaderGen is a program that can automatically produce shaders that mimic the results of a set of fixed function state. This tool was used to verify the fixed function shader code that is described in Chapter 9. By the way, you will … Read more