Reputation: 89
If I load an X file and store vertex data in vertex buffer. Then, Do translation on object, Would it change data in vertex buffer?
Upvotes: 2
Views: 266
Reputation: 4251
Of course not. You store the translation in a matrix right? So in the vertex shader you transform the vertex position by the matrix to calculate the vertex position in world space but it doesnt affect the vertex buffer
Upvotes: 1
Reputation: 385385
No.
(I'd certainly hope not. That would rather defeat the object of the scene graph.)
Upvotes: 2