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.
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.