Is there a way to get gl_Position value or the value of a varying variable with getBufferSubData (or something similar) after drawArrays?
Advertisement
Answer
With WebGL1 there’s no generic way to get the output of a vertex shader, however with WebGL2 you can use transform feedback.