Is it mandatory to have a value for "gl_Position" in Vertex Shader

According to the following post, gl_Position always needs to be written by the final vertex processing stage. In WebGL that is the vertex shader.

BTW: The usage of the GLSL operataion discard only works in the fragment shader.

1 Like