Draw trees before sky. Z-cull may be beneficial. Also, was incorrectly setting alphawrite off for deferred wlsky pass.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user