summaryrefslogtreecommitdiff
path: root/indra/newview/llvowlsky.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2018-10-22 19:23:10 +0100
committerGraham Linden <graham@lindenlab.com>2018-10-22 19:23:10 +0100
commitdba9521cf6e2b14a345f7e4a2554e536fb69feff (patch)
tree31e0705b6c752f8eeadb6b4c56b7dab12710008e /indra/newview/llvowlsky.cpp
parent91615351b56cbf36ef26fdd05fb3212414a2d679 (diff)
SL-9806
Get dome rendering to not assert the depth test state behind deferred render's back. Make clouds write and test depth to give stars something to depth test against. Add z-bias in star vert shader to force some depth testing of stars against clouds.
Diffstat (limited to 'indra/newview/llvowlsky.cpp')
-rw-r--r--indra/newview/llvowlsky.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llvowlsky.cpp b/indra/newview/llvowlsky.cpp
index a8bc8d4d45..b4b6bb252f 100644
--- a/indra/newview/llvowlsky.cpp
+++ b/indra/newview/llvowlsky.cpp
@@ -299,7 +299,9 @@ void LLVOWLSky::drawDome(void)
updateGeometry(mDrawable);
}
- LLGLDepthTest gls_depth(GL_TRUE, GL_FALSE);
+ // This is handled upstream now as we may make different decisions
+ // for some dome users (the sky) than for others (the clouds)
+ //LLGLDepthTest gls_depth(GL_TRUE, GL_FALSE);
const U32 data_mask = LLDrawPoolWLSky::SKY_VERTEX_DATA_MASK;