Add Basic Camera

This commit is contained in:
4VRDriver
2020-09-03 15:33:51 +02:00
parent cd302d0005
commit 919f65fac7
8 changed files with 87 additions and 10 deletions

View File

@@ -9,10 +9,10 @@ ShaderProgram::ShaderProgram(const char* vertexShaderPath, const char* fragmentS
shaderProgramId = createShader(vertexShaderPath, fragmentShaderPath);
// Set transformation matrix as default to identity matrix
this->bind();
bind();
glm::mat4 identity_matrix = glm::mat4(1.0f);
this->setUniform("transform", identity_matrix);
this->unbind();
setUniform("transform", identity_matrix);
unbind();
}
ShaderProgram::~ShaderProgram() {