8 lines
230 B
C++
8 lines
230 B
C++
|
#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);
|
||
|
}
|