We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74a1a6e commit f4a168bCopy full SHA for f4a168b
1 file changed
src/engine/renderer/glsl_source/cameraEffects_fp.glsl
@@ -84,11 +84,6 @@ void main()
84
vec4 color = texture2D(u_CurrentMap, st);
85
color *= u_GlobalLightFactor;
86
87
- if ( u_SRGB )
88
- {
89
- convertToSRGB( color.rgb );
90
- }
91
-
92
color.rgb *= u_Exposure;
93
94
#if defined(r_highPrecisionRendering) && defined(HAVE_ARB_texture_float)
@@ -97,6 +92,11 @@ void main()
97
}
98
#endif
99
95
+ if ( u_SRGB )
96
+ {
+ convertToSRGB( color.rgb );
+ }
+
100
color.rgb = clamp( color.rgb, vec3( 0.0f ), vec3( 1.0f ) );
101
102
#if defined(r_colorGrading)
0 commit comments