Bookshlef in place
This commit is contained in:
parent
4ba3c3c6c7
commit
986547b3b0
@ -422,10 +422,12 @@ void renderScene(GLFWwindow* window)
|
||||
0.3f,
|
||||
0.0f
|
||||
);
|
||||
//drawObjectPBR(models::bookShelf, glm::mat4() * glm::scale(glm::vec3(0.01)),
|
||||
// textures::bookShelfTexture,
|
||||
// 0.4f,
|
||||
// 0.1f);
|
||||
model = glm::mat4() * glm::translate(glm::vec3(-1.8f, -0.2f, 2.15f)) * glm::scale(glm::vec3(0.015));
|
||||
model = glm::rotate(model, glm::radians(180.0f), glm::vec3(0, 1, 0));
|
||||
drawObjectPBR(models::bookShelf, model,
|
||||
textures::bookShelfTexture,
|
||||
0.4f,
|
||||
0.1f);
|
||||
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user