Draw trees before sky. Z-cull may be beneficial. Also, was incorrectly setting alphawrite off for deferred wlsky pass.

This commit is contained in:
Shyotl
2013-02-01 17:16:01 -06:00
parent 26de17f2de
commit 1069d5dec4
3 changed files with 3 additions and 5 deletions

View File

@@ -51,9 +51,9 @@ public:
POOL_FULLBRIGHT,
POOL_BUMP,
POOL_TERRAIN,
POOL_TREE, // Singu Note: Before sky for zcull.
POOL_SKY,
POOL_WL_SKY,
POOL_TREE,
POOL_GRASS,
POOL_INVISIBLE, // see below *
POOL_AVATAR,

View File

@@ -327,8 +327,6 @@ void LLDrawPoolWLSky::renderDeferred(S32 pass)
LLGLDepthTest depth(GL_TRUE, GL_FALSE);
LLGLDisable clip(GL_CLIP_PLANE0);
gGL.setColorMask(true, false); //Just in case.
LLGLSquashToFarClip far_clip(glh_get_current_projection());
renderSkyHaze(camHeightLocal);

View File

@@ -213,10 +213,10 @@ std::string gPoolNames[] =
"POOL_GROUND",
"POOL_FULLBRIGHT",
"POOL_BUMP",
"POOL_TERRAIN",
"POOL_TERRAIN",
"POOL_TREE", // Singu Note: Before sky for zcull.
"POOL_SKY",
"POOL_WL_SKY",
"POOL_TREE",
"POOL_GRASS",
"POOL_INVISIBLE",
"POOL_AVATAR",