vertex_code = '''
        #version 330
        
        in vec3 position;
        // in vec3 color;
        in vec3 normal;
        
        out vec3 newNormal;
        out vec3 vertPos;        
        
        uniform mat4 view;
        uniform mat4 model;
        uniform mat4 projection;
        uniform mat4 transform;
        uniform mat4 normalMat; 
        
        void main() {
            gl_Position = projection * view * model * transform * vec4(position, 1.0f);
            newColor = color;
            newNormal = normal;
        }
'''




void main(){
  vec4 vertPos4 = modelview * vec4(position, 1.0);
  vertPos = vec3(vertPos4) / vertPos4.w;
  normalInterp = vec3(normalMat * vec4(normal, 0.0));
  gl_Position = projection * vertPos4;
}
