MajesticHey
MajesticHey

Reputation: 110

Is using the same VBO for two objects okay?

Lets say if I have multiple of the same Object and I want to render them in different places. Could I use the same VBO (to save ram) but change the matrices that are sent to the Shader? Or it this wrong?

Upvotes: 4

Views: 131

Answers (1)

ratchet freak
ratchet freak

Reputation: 48216

This is fine and recommended, most people do this to avoid duplicate data in memory which is of no use. There is no penalty for doing so.

Upvotes: 6

Related Questions