Bookshlef in place

This commit is contained in:
Aleksander Burkowski 2023-01-31 18:28:58 +01:00
parent 4ba3c3c6c7
commit 986547b3b0

View File

@ -422,10 +422,12 @@ void renderScene(GLFWwindow* window)
0.3f, 0.3f,
0.0f 0.0f
); );
//drawObjectPBR(models::bookShelf, glm::mat4() * glm::scale(glm::vec3(0.01)), model = glm::mat4() * glm::translate(glm::vec3(-1.8f, -0.2f, 2.15f)) * glm::scale(glm::vec3(0.015));
// textures::bookShelfTexture, model = glm::rotate(model, glm::radians(180.0f), glm::vec3(0, 1, 0));
// 0.4f, drawObjectPBR(models::bookShelf, model,
// 0.1f); textures::bookShelfTexture,
0.4f,
0.1f);
glm::vec3 spaceshipSide = glm::normalize(glm::cross(spaceshipDir, glm::vec3(0.f, 1.f, 0.f))); glm::vec3 spaceshipSide = glm::normalize(glm::cross(spaceshipDir, glm::vec3(0.f, 1.f, 0.f)));
glm::vec3 spaceshipUp = glm::normalize(glm::cross(spaceshipSide, spaceshipDir)); glm::vec3 spaceshipUp = glm::normalize(glm::cross(spaceshipSide, spaceshipDir));