Can add models with multiple textures

This commit is contained in:
Dane Johnson
2021-01-20 14:54:54 -06:00
parent f95ba69047
commit 745f03d8a2
9 changed files with 115 additions and 61 deletions

View File

@@ -3,7 +3,3 @@
#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);
}

View File

@@ -1,7 +1,12 @@
#ifndef FLATSHADER_H
#define FLATSHADER_H
#include "Shader.h"
class FlatShader : public Shader {
public:
FlatShader();
void UpdateColor(Vector3 color);
};
#endif /* FLATSHADER_H */