zmiana skyboxa
@ -229,19 +229,20 @@ void init(GLFWwindow* window)
|
||||
texture::asteroidNormal = Core::LoadTexture("textures/moon_normal.jpg");
|
||||
|
||||
|
||||
//tutaj skybox
|
||||
//tutaj skybox start
|
||||
glGenTextures(1, &textureID);
|
||||
glBindTexture(GL_TEXTURE_CUBE_MAP, textureID);
|
||||
|
||||
std::vector<std::string> filepaths = {
|
||||
"textures/skybox/space_rt.png",
|
||||
"textures/skybox/space_lf.png",
|
||||
"textures/skybox/space_up.png",
|
||||
"textures/skybox/space_dn.png",
|
||||
"textures/skybox/space_bk.png",
|
||||
"textures/skybox/space_ft.png"
|
||||
"textures/skybox/right.png",
|
||||
"textures/skybox/left.png",
|
||||
"textures/skybox/top.png",
|
||||
"textures/skybox/bottaom.png",
|
||||
"textures/skybox/back.png",
|
||||
"textures/skybox/front.png"
|
||||
};
|
||||
|
||||
|
||||
int w, h;
|
||||
unsigned char* data;
|
||||
for (unsigned int i = 0; i < 6; i++)
|
||||
@ -258,6 +259,7 @@ void init(GLFWwindow* window)
|
||||
glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
||||
glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
||||
glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);
|
||||
//skybox end
|
||||
|
||||
}
|
||||
|
||||
|
BIN
projekt_grk/textures/skybox/back.png
Normal file
After Width: | Height: | Size: 878 KiB |
BIN
projekt_grk/textures/skybox/bottom.png
Normal file
After Width: | Height: | Size: 910 KiB |
BIN
projekt_grk/textures/skybox/front.png
Normal file
After Width: | Height: | Size: 798 KiB |
BIN
projekt_grk/textures/skybox/left.png
Normal file
After Width: | Height: | Size: 977 KiB |
BIN
projekt_grk/textures/skybox/right.png
Normal file
After Width: | Height: | Size: 834 KiB |
Before Width: | Height: | Size: 299 KiB |
Before Width: | Height: | Size: 636 KiB |
Before Width: | Height: | Size: 545 KiB |
Before Width: | Height: | Size: 508 KiB |
Before Width: | Height: | Size: 326 KiB |
Before Width: | Height: | Size: 507 KiB |
BIN
projekt_grk/textures/skybox/top.png
Normal file
After Width: | Height: | Size: 797 KiB |