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

@@ -102,6 +102,11 @@ void main()
/// Gamma correct for WL (soft clip effect).
frag_data[0] = vec4(scaleSoftClip(color.rgb), alpha1);
frag_data[1] = vec4(0.0,0.0,0.0,0.0);
frag_data[2] = vec4(0,0,1,0);
//#define PACK_NORMALS
#ifdef PACK_NORMALS
frag_data[2] = vec4(0.5,0.5,0.0,0.0);
#else
frag_data[2] = vec4(0.0,0.0,1.0,0.0);
#endif
}