2021-01-15 16:15:47 -06:00
|
|
|
#include "FlatShader.h"
|
2021-01-17 18:03:09 -06:00
|
|
|
#include "flat.vert.h"
|
|
|
|
#include "flat.frag.h"
|
2021-01-15 16:15:47 -06:00
|
|
|
|
2021-01-17 18:03:09 -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);
|
|
|
|
}
|