Add Skybox

This commit is contained in:
4VRDriver
2020-09-19 00:21:49 +02:00
parent 717447eebf
commit 242b50e9ef
14 changed files with 220 additions and 13 deletions

View File

@@ -34,5 +34,12 @@ void Mesh::draw(ShaderProgram *shaderProgram) {
(*it)->unbind();
}
}
void Mesh::drawWithoutTextures(ShaderProgram *shaderProgram) {
vertexArray.bind();
glDrawElements(GL_TRIANGLES, numElements, GL_UNSIGNED_INT, 0);
vertexArray.unbind();
}