Skip to content

Getting gl_Position value with getBufferSubData

Is there a way to get gl_Position value or the value of a varying variable with getBufferSubData (or something similar) after drawArrays?


With WebGL1 there’s no generic way to get the output of a vertex shader, however with WebGL2 you can use transform feedback.