couch/core/Shaders/FlatShader.cpp

8 lines
230 B
C++
Raw Normal View History

2021-01-15 16:15:47 -06:00
#include "FlatShader.h"
FlatShader::FlatShader() : Shader("shaders/flat.vert", "shaders/flat.frag") {}
void FlatShader::UpdateColor(Vector3 color) {
glUniform3f(glGetUniformLocation(id, "color"), color.r, color.g, color.b);
}