summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-01-24 14:54:11 -0800
committerGraham Linden <graham@lindenlab.com>2019-01-24 14:54:11 -0800
commit966dc7fc8fb1fade861e8070e9c5fbbfe4d0cb45 (patch)
treea1cbc6e22bf8e443a32aab1cd78e0fc6049e3674 /indra/llrender
parenta6f92d8190e8771d6a3372eb456dbb97c7ca0c8d (diff)
SL-10276
SL-9851 Fix cloud shaders to ignore clouds when cloud_scale is 0. Fix creation of heavenly body geo to avoid degenerate vector math and not randomly flip orientation when crossing zenith. Add sun_up_factor to eliminate sun glow around moon when sun is down.
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llshadermgr.cpp2
-rw-r--r--indra/llrender/llshadermgr.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp
index 29d120a135..9db8fd1f05 100644
--- a/indra/llrender/llshadermgr.cpp
+++ b/indra/llrender/llshadermgr.cpp
@@ -1358,6 +1358,8 @@ void LLShaderMgr::initAttribsAndUniforms()
mReservedUniforms.push_back("sh_input_g");
mReservedUniforms.push_back("sh_input_b");
+ mReservedUniforms.push_back("sun_up_factor");
+
llassert(mReservedUniforms.size() == END_RESERVED_UNIFORMS);
std::set<std::string> dupe_check;
diff --git a/indra/llrender/llshadermgr.h b/indra/llrender/llshadermgr.h
index c22fe44750..0b1a97d880 100644
--- a/indra/llrender/llshadermgr.h
+++ b/indra/llrender/llshadermgr.h
@@ -248,6 +248,7 @@ public:
SH_INPUT_L1G,
SH_INPUT_L1B,
+ SUN_UP_FACTOR,
END_RESERVED_UNIFORMS
} eGLSLReservedUniforms;