diff options
author | Graham Linden <graham@lindenlab.com> | 2013-07-25 11:09:45 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2013-07-25 11:09:45 -0700 |
commit | 6d21cd2ae1e8a32ccaf750a97199407fb1cacdef (patch) | |
tree | cdc532d8b3012334526e915815b958d50d1fa6ca /indra/newview/lldrawpoolavatar.cpp | |
parent | f357269c38a8627aeb67c82c5ee34b49336e0d8b (diff) |
NORSPEC-324 set gamma value for avatar alpha shader too for gamma correct eyelashes
Diffstat (limited to 'indra/newview/lldrawpoolavatar.cpp')
-rwxr-xr-x | indra/newview/lldrawpoolavatar.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolavatar.cpp b/indra/newview/lldrawpoolavatar.cpp index b6eee124e1..e2a23ef56f 100755 --- a/indra/newview/lldrawpoolavatar.cpp +++ b/indra/newview/lldrawpoolavatar.cpp @@ -273,6 +273,9 @@ void LLDrawPoolAvatar::beginPostDeferredAlpha() gPipeline.bindDeferredShader(*sVertexProgram); + F32 gamma = gSavedSettings.getF32("RenderDeferredDisplayGamma"); + sVertexProgram->uniform1f(LLShaderMgr::DISPLAY_GAMMA, (gamma > 0.1f) ? 1.0f / gamma : (1.0f/2.2f)); + sVertexProgram->setMinimumAlpha(0.2f); sDiffuseChannel = sVertexProgram->enableTexture(LLViewerShaderMgr::DIFFUSE_MAP); |