title: How do i display 2 or more objects in openGL (model - view - projection matrices and shaders)
body: <p>It's all ok when i want to draw one object, for example a cube. I create vertices for cube, i create the buffer, i create the MVP matrix and send it to shader and it works nice.</p>
  
  <p>But, <strong>what to do when i want to draw 2 or more objects</strong>, for example both cube and a triangle? I believe that View and Projection matrices should be same both for triangle and cube, i only need different Model matrix, right? 
  So that means that i will have two MVPs?</p>
  
  <pre><code>//Example (using GLM):
  
  glm::mat4 MVPC = Projection * View * ModelCube; 
  glm::mat4 MVPT = Projection * View * ModelTriangle; 
  </code></pre>
  
  <p>So what do i do with those two now? This is the vertex shader that works good for cube</p>
  
  <pre><code>//vertex shader
  #version 330 core
  
  layout(location = 0) in vec3 verticesCube;
  
  uniform mat4 MVPC;
  
  void main(){
  
       gl_Position =  MVPC * vec4(verticesCube,1);
  
  }
  </code></pre>
  
  <p>And what should i do with MVPT (triangle) in shader, i tried messing around with different things, but i can't get it to work, i can't display both the cube and the triangle at the same time.</p>