Zadanie 2 stable version

This commit is contained in:
Władysław Kuczerenko 2024-06-09 23:58:55 +02:00
parent 96ce16c161
commit 9f4f44f895

View File

@ -125,7 +125,7 @@ void display() {
glUseProgram(shaderProgram);
// Ustawienie widoku kamery
glm::mat4 view = glm::lookAt(glm::vec3(0, 20, 50), glm::vec3(0, 10, 0), glm::vec3(0, 1, 0));
glm::mat4 view = glm::lookAt(glm::vec3(20, 20, 30), glm::vec3(0, 10, 0), glm::vec3(0, 1, 0));
glm::mat4 projection = glm::perspective(glm::radians(45.0f), (float)windowWidth / (float)windowHeight, 0.1f, 100.0f);
// Renderowanie każdej z 10 kul