AnalyticalGraphicsInc/cesium — pull request #1102 by gbeatty (2013-08-30 20:33:15+00:00)
Title: New shader enhancements

Extracted glsl constants, structs, and functions into individual glsl files.
Build now builds constants.js structs.js and functions.js for use in ShaderProgram.js.
ShaderProgram.js builds a dependency graph for all functions used in the shader being compiled and determines the order the functions need to be defined in.
Only functions, structs, constants that are referenced are included in the final shader.