summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolwlsky.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-04-30 12:19:35 -0700
committerGraham Linden <graham@lindenlab.com>2019-04-30 12:19:35 -0700
commit1ff876a961dc00b7f162054ea1a9fed79240bffc (patch)
tree5889c6d6386838d93acbe089c896b25d0f9d0a6e /indra/newview/lldrawpoolwlsky.cpp
parentbfce96d684d5d056061ce16a36daba9a2bd0aa9d (diff)
SL-11071
Make sun disc and moon shaders use sRGB hardware tex sampling. Remove sun disc shader use of fullbright transport (fogging).
Diffstat (limited to 'indra/newview/lldrawpoolwlsky.cpp')
-rw-r--r--indra/newview/lldrawpoolwlsky.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolwlsky.cpp b/indra/newview/lldrawpoolwlsky.cpp
index b9bc7678e6..9039c8cbcb 100644
--- a/indra/newview/lldrawpoolwlsky.cpp
+++ b/indra/newview/lldrawpoolwlsky.cpp
@@ -484,6 +484,9 @@ void LLDrawPoolWLSky::renderHeavenlyBodies()
{
sun_shader->bind();
+ gGL.getTexUnit(0)->setTextureColorSpace(LLTexUnit::TCS_SRGB);
+ gGL.getTexUnit(1)->setTextureColorSpace(LLTexUnit::TCS_SRGB);
+
if (tex_a && (!tex_b || (tex_a == tex_b)))
{
// Bind current and next sun textures
@@ -532,6 +535,9 @@ void LLDrawPoolWLSky::renderHeavenlyBodies()
{
moon_shader->bind();
+ gGL.getTexUnit(0)->setTextureColorSpace(LLTexUnit::TCS_SRGB);
+ gGL.getTexUnit(1)->setTextureColorSpace(LLTexUnit::TCS_SRGB);
+
if (tex_a && (!tex_b || (tex_a == tex_b)))
{
// Bind current and next sun textures