Create a simple shader for a scene

Overview

My shader class is based off the shader described in learnopengl. Please read it.

My code can be found in shader.h and shader.cpp

The Shader class handles reading and compiling shader files from disk. The actual shaders I use are below

Vertex Shader

#version 330 core
layout (location = 0) in vec3 position;     
  
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;

void main()
{
    gl_Position = projection*view*model*vec4(position, 1.0f);
}    

This simple vertex shader handles translating a fragment from local coordinates to camera coordinates with projective perspective.

Fragment Shader

#version 330 core
out vec4 color;

void main()
{
    color = vec4(1.0f,0.0f,0.0f,1.0f);
}

Whereas this simple fragment shader colors everything red.