PDA

View Full Version : Vertex Shaders built-in variables



learnwebgl
11-05-2009, 06:01 PM
I am reading the OpenGL ES 2.0 Programming Guide book. Chapter 8 discusses about Vertex Shaders and it mentions about some built-in special variables such as gl_Positiongl_PointSize, gl_FrontFacing. Also, built-in Univorfm State gl_DepthRange, etc.

Where can I find all the corresponding Vertex Shaders built-in variables on WebGL?

I found the WebGL cheat sheet on http://www.nihilogic.dk/labs/webgl_chea ... _Sheet.htm (http://www.nihilogic.dk/labs/webgl_cheat_sheet/WebGL_Cheat_Sheet.htm). Do we have an equivalent of Vertex Shaders cheat sheet?

Thanks in advance for your help.

Coolcat
11-06-2009, 04:50 AM
I think you are searching for the current OpenGL ES Shading Language Specification (http://www.khronos.org/registry/gles/specs/2.0/GLSL_ES_Specification_1.0.17.pdf). Take a look into chapter 7 ("Built-in Variables").

If there is in future a new version of that specification, you will find it here:
http://www.khronos.org/registry/gles/