João Paulo
João Paulo

Reputation: 6710

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?

Upvotes: 0

Views: 111

Answers (1)

LJᛃ
LJᛃ

Reputation: 8153

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

Upvotes: 1

Related Questions