Search code examples
c++openglrenderingvbofreeglut

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?


Solution

  • 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.