title: Intense distortion when rotating objects OpenGL
body: <p>I have been trying to rotate a quad by making a view matrix and model matrix. I am using GLM to do this.</p>
  
  <p>Here is the code for making the matrices:</p>
  
  <pre><code>glm::mat4 view = glm::translate(glm::mat4(1.0f), position);
  view = view * glm::rotate(glm::radians(pitch), glm::vec3(1.0f, 0.0f, 0.0f));
  
  glm::mat4 model = glm::translate(glm::mat4(1.0f), glm::vec3(0.0f, 0.0f, 0.0f));
  </code></pre>
  
  <p>Here is the vertex shader:</p>
  
  <pre><code>#version 330 core
  layout (location = 0) in vec3 aPos;
  
  uniform mat4 projection;
  uniform mat4 view;
  uniform mat4 model;
  
  void main()
  {
      gl_Position = projection * view * model * vec4(aPos, 1.0);
  }
  </code></pre>
  
  <p>So this code is rotating the objects, but they get <em>very</em> distorted as they rotate and they rotate slower at the top and bottom of the screen. I tried to look up another way of doing this, but everything else showed nothing on the screen at all.</p>
  
  <p>EDIT: Here is a link to the distortion: <a href="https://imgur.com/a/HzUNJAe" rel="nofollow noreferrer">https://imgur.com/a/HzUNJAe</a></p>
  
  <p><a href="https://i.stack.imgur.com/5Oie2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5Oie2.png" alt="img"></a></p>