Skip to content
Advertisement

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?

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.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement