diff options
author | Oz Linden <oz@lindenlab.com> | 2013-06-03 18:06:45 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-06-03 18:06:45 -0400 |
commit | 9acabccdde5cff91cac3bae0502c8ff5b26cada6 (patch) | |
tree | b6fc95044fc41cdc43969195f9c1939e8ecb0158 /indra/llrender/llshadermgr.cpp | |
parent | dd2ede9991a9a31821fbe43a7fa17a5aafa19542 (diff) | |
parent | 7fa8c2313b47959ba8c0a40d92461f6892e0d0d3 (diff) |
merge changes for 3.6.0-materials-beta1
Diffstat (limited to 'indra/llrender/llshadermgr.cpp')
-rwxr-xr-x | indra/llrender/llshadermgr.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp index ef78d43665..37b9c0e0e0 100755 --- a/indra/llrender/llshadermgr.cpp +++ b/indra/llrender/llshadermgr.cpp @@ -695,6 +695,8 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade } */ + text[count++] = strdup("#define HAS_DIFFUSE_LOOKUP 1\n"); + //uniform declartion for (S32 i = 0; i < texture_index_channels; ++i) { @@ -752,6 +754,10 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade llerrs << "Indexed texture rendering requires GLSL 1.30 or later." << llendl; } } + else + { + text[count++] = strdup("#define HAS_DIFFUSE_LOOKUP 0\n"); + } //copy file into memory while( fgets((char *)buff, 1024, file) != NULL && count < LL_ARRAY_SIZE(text) ) @@ -1068,6 +1074,7 @@ void LLShaderMgr::initAttribsAndUniforms() mReservedUniforms.push_back("minimum_alpha"); + mReservedUniforms.push_back("emissive_brightness"); mReservedUniforms.push_back("shadow_matrix"); mReservedUniforms.push_back("env_mat"); |