Ticket #543: black_background.patch

File black_background.patch, 1.2 KB (added by Jay Weisskopf, 14 years ago)

This patch appears to have your desired effect.

  • source/ps/GameSetup/GameSetup.cpp

     
    196196
    197197    ogl_WarnIfError();
    198198
    199     CStr skystring = "61 193 255";
     199    CStr skystring = "0 0 0";
    200200    CFG_GET_USER_VAL("skycolor", String, skystring);
    201201    CColor skycol;
    202202    GUI<CColor>::ParseString(skystring, skycol);
  • source/renderer/Renderer.cpp

     
    12381238        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    12391239    }
    12401240
    1241     // render sky; this is done before everything so that
    1242     // (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 sky
    1245     if (m_SkyManager->m_RenderSky)
    1246     {
    1247         MICROLOG(L"render sky");
    1248         m->skyManager.RenderSky();
    1249         ogl_WarnIfError();
    1250     }
    1251 
    12521241    // render submitted patches and models
    12531242    MICROLOG(L"render patches");
    12541243    RenderPatches();