Ticket #543: black_background.patch
File black_background.patch, 1.2 KB (added by , 14 years ago) |
---|
-
source/ps/GameSetup/GameSetup.cpp
196 196 197 197 ogl_WarnIfError(); 198 198 199 CStr skystring = " 61 193 255";199 CStr skystring = "0 0 0"; 200 200 CFG_GET_USER_VAL("skycolor", String, skystring); 201 201 CColor skycol; 202 202 GUI<CColor>::ParseString(skystring, skycol); -
source/renderer/Renderer.cpp
1238 1238 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 1239 1239 } 1240 1240 1241 // render sky; this is done before everything so that1242 // (a) we can use a box around the camera instead of placing it "infinitely far away"1243 // (we just disable depth write so that this doesn't affect future rendering)1244 // (b) transparent objects properly overlap the sky1245 if (m_SkyManager->m_RenderSky)1246 {1247 MICROLOG(L"render sky");1248 m->skyManager.RenderSky();1249 ogl_WarnIfError();1250 }1251 1252 1241 // render submitted patches and models 1253 1242 MICROLOG(L"render patches"); 1254 1243 RenderPatches();