Experimentation with normalpacking and component precision.

This commit is contained in:
Shyotl
2012-10-14 04:00:02 -05:00
parent eb5b1312bb
commit e8ec81bf04
28 changed files with 354 additions and 46 deletions

View File

@@ -660,6 +660,10 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade
}
}
static const LLCachedControl<bool> SHPackDeferredNormals("SHPackDeferredNormals",false);
if(SHPackDeferredNormals)
text[count++] = strdup("#define PACK_NORMALS\n");
//copy preprocessor definitions into buffer
for (std::map<std::string,std::string>::iterator iter = mDefinitions.begin(); iter != mDefinitions.end(); ++iter)
{