Light | Dark

gl_Position

Name

gl_Position — contains the position of the current vertex

Declaration

out highp vec4 gl_Position ;

Description

The variable gl_Position is intended for writing the homogeneous vertex position. It can be written at any time during vertexshader execution. This value will be used by primitive assembly, clipping, culling, and other fixed functionality operations, if present, that operate on primitives after vertex processing has occurred. Its value is undefined after the vertex processing stage if the vertex shader executable does not write gl_Position.

Version Support

OpenGL ES Shading Language Version
Variable Name 1.00 3.00 3.10
gl_Position

See Also

gl_PointSize

Think you can improve this page? Edit this page on GitHub.