X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSkybox.cpp;h=cb9505e61f6590ec896a631a463f05033c07fc79;hb=87ff660bf58766ab705a749e72e04154ccf5a737;hp=776d05e0e8c8e0b005227ce37a608584f44efdaa;hpb=24004d6ab1e68faaf85ece11b566449997da5013;p=lugaru.git diff --git a/Source/Skybox.cpp b/Source/Skybox.cpp index 776d05e..cb9505e 100644 --- a/Source/Skybox.cpp +++ b/Source/Skybox.cpp @@ -52,9 +52,12 @@ void SkyBox::draw() M[13] = 0; M[14] = 0; glLoadMatrixf(M); - if (environment == 2)glScalef(1 + blurness / 1000, 1, 1 + blurness / 1000); - if (environment != 2)glColor3f(.85 * skyboxr, .85 * skyboxg, .95 * skyboxb); - else glColor3f(1 * skyboxr, .95 * skyboxg, .95 * skyboxb); + if (environment == 2) + glScalef(1 + blurness / 1000, 1, 1 + blurness / 1000); + if (environment != 2) + glColor3f(.85 * skyboxr, .85 * skyboxg, .95 * skyboxb); + else + glColor3f(1 * skyboxr, .95 * skyboxg, .95 * skyboxb); if (!skyboxtexture) { glDisable(GL_TEXTURE_2D); @@ -64,7 +67,8 @@ void SkyBox::draw() glDisable(GL_CULL_FACE); glEnable(GL_BLEND); glDisable(GL_LIGHTING); - if (skyboxtexture)glEnable(GL_TEXTURE_2D); + if (skyboxtexture) + glEnable(GL_TEXTURE_2D); glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE ); front.bind(); glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE );