couch/core/Shaders/FlatShader.cpp
2021-01-17 18:03:09 -06:00

10 lines
256 B
C++

#include "FlatShader.h"
#include "flat.vert.h"
#include "flat.frag.h"
FlatShader::FlatShader() : Shader(flat_vert, flat_frag) {}
void FlatShader::UpdateColor(Vector3 color) {
glUniform3f(glGetUniformLocation(id, "color"), color.r, color.g, color.b);
}