// For a discussion of what this is, please read this: http://lousodrome.net/blog/light/2013/05/26/gamma-correct-and-hdr-rendering-in-a-32-bits-buffer/
// These encodings should have the same integer values as THREE.Linear, THREE.sRGB, etc...
#define ENCODING_Linear 3000
#define ENCODING_sRGB 3001
...
...
@@ -23,7 +25,7 @@ vec4 texelDecode( in vec4 encodedTexel, in int encoding ) {