Shader compilation

Hi,

I am new to GLSL and while creating code found out that there are some naming convention differences for CI_GLSL and GLSL like gl_ModelViewMatrix (ciModelViewMarix). I have gone through the GLSL functions like pow() , normalize() etc. Do Cinder have different definitions for this functions ? Is there any document mentioning difference between use of GLSL and when we use it with Cinder?

gl_ModelViewMatrix was used in old OpenGL, which is not applicable for modern OpenGL anymore. You have to pass your matrices to the shader yourself. Cinder does this for you using uniforms with the ci prefix. You can read more about this in Andrew’s post OpenGL in Cinder 0.9.0 or the OpenGL in Cinder guide in the docs.

-Gabor