Remove warning

This commit is contained in:
4VRDriver
2020-09-19 00:21:49 +02:00
parent a5818dfd04
commit dd9b808283
3 changed files with 4 additions and 3 deletions

View File

@@ -103,12 +103,13 @@ void Skybox::draw(glm::mat4 viewMatrix, glm::mat4 projectionMatrix) {
glDepthMask(GL_FALSE);
shaderProgram->bind();
// Delete any translation from the skybox cube
glm::mat4 viewProjectionMatrix = projectionMatrix * glm::mat4(glm::mat3(viewMatrix));
shaderProgram->setUniform("u_viewProjectionMatrix", viewProjectionMatrix);
cubeMap.bind(shaderProgram);
cubeModel->getMesh(0)->drawWithoutTextures(shaderProgram);
cubeModel->getMesh(0)->drawWithoutTextures();
cubeMap.unbind();
shaderProgram->unbind();