diff --git a/grafika_projekt/models/skybox/back.jpg b/grafika_projekt/models/skybox/back.jpg index 5ed7593..11bb9ed 100644 Binary files a/grafika_projekt/models/skybox/back.jpg and b/grafika_projekt/models/skybox/back.jpg differ diff --git a/grafika_projekt/models/skybox/bottom.jpg b/grafika_projekt/models/skybox/bottom.jpg index f4b5702..3b414f6 100644 Binary files a/grafika_projekt/models/skybox/bottom.jpg and b/grafika_projekt/models/skybox/bottom.jpg differ diff --git a/grafika_projekt/models/skybox/left.jpg b/grafika_projekt/models/skybox/left.jpg index ef889f4..3fa7115 100644 Binary files a/grafika_projekt/models/skybox/left.jpg and b/grafika_projekt/models/skybox/left.jpg differ diff --git a/grafika_projekt/models/skybox/right.jpg b/grafika_projekt/models/skybox/right.jpg index 3b3dea6..f6f11cb 100644 Binary files a/grafika_projekt/models/skybox/right.jpg and b/grafika_projekt/models/skybox/right.jpg differ diff --git a/grafika_projekt/models/skybox/top.jpg b/grafika_projekt/models/skybox/top.jpg index 3bbf706..c37de73 100644 Binary files a/grafika_projekt/models/skybox/top.jpg and b/grafika_projekt/models/skybox/top.jpg differ diff --git a/grafika_projekt/src/main.cpp b/grafika_projekt/src/main.cpp index 47d2640..f658fa0 100644 --- a/grafika_projekt/src/main.cpp +++ b/grafika_projekt/src/main.cpp @@ -38,48 +38,50 @@ std::string skyboxTextures[6] = { "models/skybox/back.jpg" }; +float skyboxVerticeParameter = 20.0f; + float skyboxVertices[] = { - -20.0f, 20.0f, -20.0f, - -20.0f, -20.0f, -20.0f, - 20.0f, -20.0f, -20.0f, - 20.0f, -20.0f, -20.0f, - 20.0f, 20.0f, -20.0f, - -20.0f, 20.0f, -20.0f, + -skyboxVerticeParameter, skyboxVerticeParameter, -skyboxVerticeParameter, + -skyboxVerticeParameter, -skyboxVerticeParameter, -skyboxVerticeParameter, + skyboxVerticeParameter, -skyboxVerticeParameter, -skyboxVerticeParameter, + skyboxVerticeParameter, -skyboxVerticeParameter, -skyboxVerticeParameter, + skyboxVerticeParameter, skyboxVerticeParameter, -skyboxVerticeParameter, + -skyboxVerticeParameter, skyboxVerticeParameter, -skyboxVerticeParameter, - -20.0f, -20.0f, 20.0f, - -20.0f, -20.0f, -20.0f, - -20.0f, 20.0f, -20.0f, - -20.0f, 20.0f, -20.0f, - -20.0f, 20.0f, 20.0f, - -20.0f, -20.0f, 20.0f, + -skyboxVerticeParameter, -skyboxVerticeParameter, skyboxVerticeParameter, + -skyboxVerticeParameter, -skyboxVerticeParameter, -skyboxVerticeParameter, + -skyboxVerticeParameter, skyboxVerticeParameter, -skyboxVerticeParameter, + -skyboxVerticeParameter, skyboxVerticeParameter, -skyboxVerticeParameter, + -skyboxVerticeParameter, skyboxVerticeParameter, skyboxVerticeParameter, + -skyboxVerticeParameter, -skyboxVerticeParameter, skyboxVerticeParameter, - 20.0f, -20.0f, -20.0f, - 20.0f, -20.0f, 20.0f, - 20.0f, 20.0f, 20.0f, - 20.0f, 20.0f, 20.0f, - 20.0f, 20.0f, -20.0f, - 20.0f, -20.0f, -20.0f, + skyboxVerticeParameter, -skyboxVerticeParameter, -skyboxVerticeParameter, + skyboxVerticeParameter, -skyboxVerticeParameter, skyboxVerticeParameter, + skyboxVerticeParameter, skyboxVerticeParameter, skyboxVerticeParameter, + skyboxVerticeParameter, skyboxVerticeParameter, skyboxVerticeParameter, + skyboxVerticeParameter, skyboxVerticeParameter, -skyboxVerticeParameter, + skyboxVerticeParameter, -skyboxVerticeParameter, -skyboxVerticeParameter, - -20.0f, -20.0f, 20.0f, - -20.0f, 20.0f, 20.0f, - 20.0f, 20.0f, 20.0f, - 20.0f, 20.0f, 20.0f, - 20.0f, -20.0f, 20.0f, - -20.0f, -20.0f, 20.0f, + -skyboxVerticeParameter, -skyboxVerticeParameter, skyboxVerticeParameter, + -skyboxVerticeParameter, skyboxVerticeParameter, skyboxVerticeParameter, + skyboxVerticeParameter, skyboxVerticeParameter, skyboxVerticeParameter, + skyboxVerticeParameter, skyboxVerticeParameter, skyboxVerticeParameter, + skyboxVerticeParameter, -skyboxVerticeParameter, skyboxVerticeParameter, + -skyboxVerticeParameter, -skyboxVerticeParameter, skyboxVerticeParameter, - -20.0f, 20.0f, -20.0f, - 20.0f, 20.0f, -20.0f, - 20.0f, 20.0f, 20.0f, - 20.0f, 20.0f, 20.0f, - -20.0f, 20.0f, 20.0f, - -20.0f, 20.0f, -20.0f, + -skyboxVerticeParameter, skyboxVerticeParameter, -skyboxVerticeParameter, + skyboxVerticeParameter, skyboxVerticeParameter, -skyboxVerticeParameter, + skyboxVerticeParameter, skyboxVerticeParameter, skyboxVerticeParameter, + skyboxVerticeParameter, skyboxVerticeParameter, skyboxVerticeParameter, + -skyboxVerticeParameter, skyboxVerticeParameter, skyboxVerticeParameter, + -skyboxVerticeParameter, skyboxVerticeParameter, -skyboxVerticeParameter, - -20.0f, -20.0f, -20.0f, - -20.0f, -20.0f, 20.0f, - 20.0f, -20.0f, -20.0f, - 20.0f, -20.0f, -20.0f, - -20.0f, -20.0f, 20.0f, - 20.0f, -20.0f, 20.0f + -skyboxVerticeParameter, -skyboxVerticeParameter, -skyboxVerticeParameter, + -skyboxVerticeParameter, -skyboxVerticeParameter, skyboxVerticeParameter, + skyboxVerticeParameter, -skyboxVerticeParameter, -skyboxVerticeParameter, + skyboxVerticeParameter, -skyboxVerticeParameter, -skyboxVerticeParameter, + -skyboxVerticeParameter, -skyboxVerticeParameter, skyboxVerticeParameter, + skyboxVerticeParameter, -skyboxVerticeParameter, skyboxVerticeParameter };