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

@@ -340,8 +340,9 @@ void validate_framebuffer_object();
bool addDeferredAttachments(LLRenderTarget& target)
{
static const LLCachedControl<bool> SHPrecisionDeferredNormals("SHPrecisionDeferredNormals",false);
return target.addColorAttachment(GL_RGBA) && //specular
target.addColorAttachment(GL_RGBA); //normal+z
target.addColorAttachment(SHPrecisionDeferredNormals ? GL_RGB10_A2 : GL_RGBA); //normal+z
}
LLPipeline::LLPipeline() :