What versions of GLSL can I use in OpenGL ES 2.0?

Kyle Emmerich picture Kyle Emmerich · Jan 15, 2012 · Viewed 20.8k times · Source

I can't seem to find a clear answer on this, despite hours of googling. Can someone just tell me what's going on? I get errors saying things like, "version 140 is not supported." Is this my device (Kindle Fire) or GL ES 2.0? Do I need to add libraries or anything?

Answer

Thomas picture Thomas · Jan 15, 2012

The OpenGL ES 2.0 spec refers to GLSL ES, which is not the same as GLSL.

The spec GLSL ES spec says:

This version of the language is based on version 1.10 of the desktop GLSL. However it includes a number of features that are in version 1.20 but not 1.10.

Check out the spec to see what's supported.