We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 569e784 commit 366c736Copy full SHA for 366c736
src/engine/renderer/glsl_source/cameraEffects_fp.glsl
@@ -41,7 +41,11 @@ void convertToSRGB(inout vec3 color) {
41
vec3 low = vec3(12.92f) * color;
42
vec3 high = vec3(1.055f) * pow(color, vec3(1.0f / 2.4f)) - vec3(0.055f);
43
44
- color = mix(high, low, cutoff);
+ #if __VERSION__ > 120
45
+ color = mix(high, low, cutoff);
46
+ #else
47
+ color = mix(high, low, vec3(cutoff));
48
+ #endif
49
#else
50
float inverse = 0.4545454f; // 1 / 2.2
51
color = pow(color, vec3(inverse));
0 commit comments