diff options
author | Geenz <geenz@geenzo.com> | 2019-04-09 22:35:40 -0700 |
---|---|---|
committer | Geenz <geenz@geenzo.com> | 2019-04-09 22:35:40 -0700 |
commit | dcd8117b85f45886f78a1a2e9756cb1709d6572a (patch) | |
tree | 65d1b49cb3c3fbd1e0d4efad7c457a7598d25533 /indra/llrender/llshadermgr.cpp | |
parent | f9c0b021ea1a695c0d5d4042981045fe265e7918 (diff) |
First stab at moving atmospheric var calcs to its own utility shader.
Still some work to go here. Largely related to how certain values (i.e., SSAO mix values) are supplied. But so far, so good.
--HG--
branch : OPEN-340
Diffstat (limited to 'indra/llrender/llshadermgr.cpp')
-rw-r--r-- | indra/llrender/llshadermgr.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp index 4303c3ed11..071f40d924 100644 --- a/indra/llrender/llshadermgr.cpp +++ b/indra/llrender/llshadermgr.cpp @@ -96,6 +96,10 @@ BOOL LLShaderMgr::attachShaderFeatures(LLGLSLShader * shader) { return FALSE; } + + if (!shader->attachObject("windlight/atmosphericsFuncs.glsl")) { + return FALSE; + } } if (features->calculatesLighting) @@ -194,6 +198,10 @@ BOOL LLShaderMgr::attachShaderFeatures(LLGLSLShader * shader) { return FALSE; } + + if (!shader->attachObject("windlight/atmosphericsFuncs.glsl")) { + return FALSE; + } } // we want this BEFORE shadows and AO because those facilities use pos/norm access |