couch/core/Shaders/FlatShader.cpp

10 lines
256 B
C++
Raw Normal View History

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