cocos2d/cocos2d-swift — pull request #1065 by thayerandrews (2014-11-12 18:19:52+00:00)
Title: CCShader - Add non-prefixing, raw GLSL compilation path

- Rework the flow from initWithVertexShaderSource... -> initWithGLVertexShaderSource -> CompileShader so prefixing is not done at the end of this call chain but at the beginning. CompileShaderSources (CompileShader's new name) now blindly compiles whatever source strings are passed to it without modification.
- Add initWithRawVertexShaderSource... that does not insert any prefix headers into the supplied source.
- Modify compilation of our built-in shaders to use the raw compilation path.
- This also fixes the OS X and Android builds by adding CCLightNode to them.