3Dlabs recently released ShaderGen, a learning tool which generates shader code (based on parameters you set) to illustrate how to obtain the same rendering results as the OpenGL fixed function path. The source code is available as well.
Archive Notice: This content is archived, and commenting is no longer active.
It is here for reference purposes. This content was added on an older version of
flipcode, before the site closed in 2005.