diff options
author | Graham Linden <graham@lindenlab.com> | 2018-11-09 18:31:29 +0000 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-11-09 18:31:29 +0000 |
commit | db270df7cc00c1e2519749831e7e98c2c10e3ee6 (patch) | |
tree | 7638f00884b1b2ec7ee4d08159ddcb967db9a928 /indra/llrender/llshadermgr.cpp | |
parent | 2929998982f37221a58b9fa8037748a2e905f4b1 (diff) |
Back out changes causing broken shadows and other render shenanigans.
Diffstat (limited to 'indra/llrender/llshadermgr.cpp')
-rw-r--r-- | indra/llrender/llshadermgr.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp index 55e4ecda2a..d6fe35e2ca 100644 --- a/indra/llrender/llshadermgr.cpp +++ b/indra/llrender/llshadermgr.cpp @@ -186,23 +186,15 @@ BOOL LLShaderMgr::attachShaderFeatures(LLGLSLShader * shader) } } - // NOTE order of shader object attaching is VERY IMPORTANT!!! - if (features->isDeferred || features->hasShadows) - { - if (!shader->attachObject("deferred/deferredUtil.glsl")) - { - return FALSE; - } - } - - if (features->hasIndirect) + if (features->calculatesLighting || features->calculatesAtmospherics) { - if (!shader->attachObject("deferred/indirect.glsl")) + if (!shader->attachObject("windlight/atmosphericsHelpersF.glsl")) { return FALSE; } } + // NOTE order of shader object attaching is VERY IMPORTANT!!! if (features->hasGamma) { if (!shader->attachObject("windlight/gammaF.glsl")) |