Transform shader sources to header files

This commit is contained in:
Dane Johnson
2021-01-17 18:03:09 -06:00
parent 5e8d693758
commit 0f3dbdff64
8 changed files with 59 additions and 43 deletions

View File

@@ -1,6 +1,8 @@
#include "FlatShader.h"
#include "flat.vert.h"
#include "flat.frag.h"
FlatShader::FlatShader() : Shader("shaders/flat.vert", "shaders/flat.frag") {}
FlatShader::FlatShader() : Shader(flat_vert, flat_frag) {}
void FlatShader::UpdateColor(Vector3 color) {
glUniform3f(glGetUniformLocation(id, "color"), color.r, color.g, color.b);