Mike
Mike

Reputation: 89

Would data in vertex buffer change after translation?

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

Answers (2)

Tiago Costa
Tiago Costa

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

Lightness Races in Orbit
Lightness Races in Orbit

Reputation: 385385

No.

(I'd certainly hope not. That would rather defeat the object of the scene graph.)

Upvotes: 2

Related Questions