Transform shader sources to header files
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user