OpenGL2: Shader optimization, and add dither to tonemap.

This commit is contained in:
SmileTheory committed 2016-02-17 20:06:18 -08:00
1 parent d11cfc88d5
commit a331637745
5 files changed
+76 -74

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ vec3 GetValues(vec2 offset, vec3 current)
#ifdef FIRST_PASS
#if defined(USE_PBR)
minAvgMax = pow(minAvgMax, vec3(2.2));
minAvgMax *= minAvgMax;
#endif
float lumi = max(dot(LUMINANCE_VECTOR, minAvgMax), 0.000001);