diff options
author | Graham Linden <graham@lindenlab.com> | 2018-11-09 21:11:37 +0000 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-11-09 21:11:37 +0000 |
commit | d614bf11357d9ff1fef59c7ff11eff73b211dcac (patch) | |
tree | 9b864052caf16342f5275ceaf21dcf4f59a12649 /indra/llrender/llshadermgr.cpp | |
parent | db270df7cc00c1e2519749831e7e98c2c10e3ee6 (diff) |
Yes, Maurice, baby steps.
Diffstat (limited to 'indra/llrender/llshadermgr.cpp')
-rw-r--r-- | indra/llrender/llshadermgr.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp index d6fe35e2ca..e128979a76 100644 --- a/indra/llrender/llshadermgr.cpp +++ b/indra/llrender/llshadermgr.cpp @@ -171,6 +171,8 @@ BOOL LLShaderMgr::attachShaderFeatures(LLGLSLShader * shader) // Attach Fragment Shader Features Next /////////////////////////////////////// +// NOTE order of shader object attaching is VERY IMPORTANT!!! + if(features->calculatesAtmospherics) { if (features->hasWaterFog) @@ -194,7 +196,22 @@ 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 (!shader->attachObject("deferred/indirect.glsl")) + { + return FALSE; + } + } + if (features->hasGamma) { if (!shader->attachObject("windlight/gammaF.glsl")) |