Minor changes

This commit is contained in:
Mateusz Walas 2021-12-30 12:08:05 +01:00
parent 29872be109
commit 7dccc9d362
5 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -21,7 +21,7 @@ unsigned int cubemapTexture, skyboxVAO;
float old_x, old_y = -1;
glm::vec3 cursorDiff;
glm::vec3 lightDir = glm::normalize(glm::vec3(1.0f, -0.9f, -1.0f));
glm::vec3 lightDir = glm::normalize(glm::vec3(0.0f, 0.0f, 1.0f));
glm::vec3 cameraPos = glm::vec3(0, 0, 5);
glm::vec3 cameraDir; // Wektor "do przodu" kamery
glm::vec3 cameraSide; // Wektor "w bok" kamery
@ -214,7 +214,7 @@ void renderScene()
glDrawArrays(GL_TRIANGLES, 0, 36);
glBindVertexArray(0);
glm::mat4 submarineInitialTransformation = glm::translate(glm::vec3(-1, 0, -0.5)) * glm::rotate(glm::radians(180.0f), glm::vec3(0, 1, 0)) * glm::scale(glm::vec3(0.25f));
glm::mat4 submarineInitialTransformation = glm::translate(glm::vec3(0, -0.5, -0.4)) * glm::rotate(glm::radians(180.0f), glm::vec3(0, 1, 0)) * glm::scale(glm::vec3(0.25f));
glm::mat4 submarineModelMatrix = glm::translate(cameraPos + cameraDir) * glm::mat4_cast(glm::inverse(rotation)) * submarineInitialTransformation;
//drawObjectColor(fishContext, fishModelMatrix, glm::vec3(0.6f));
drawObjectTexture(submarineContext, submarineModelMatrix, textureSubmarine);

Binary file not shown.

Binary file not shown.