OpenGL2: Shader optimization, and add dither to tonemap.

This commit is contained in:
SmileTheory 2016-02-17 20:06:18 -08:00
parent d11cfc88d5
commit a331637745
5 changed files with 76 additions and 74 deletions

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);