We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5a5037 commit 5fcbb99Copy full SHA for 5fcbb99
src/engine/renderer/glsl_source/cameraEffects_fp.glsl
@@ -103,8 +103,6 @@ void main() {
103
vec4 color = texture2D(u_CurrentMap, st);
104
color *= u_GlobalLightFactor;
105
106
- color.rgb *= u_Exposure;
107
-
108
#if defined(r_highPrecisionRendering) && defined(HAVE_ARB_texture_float)
109
if( u_Tonemap ) {
110
#if defined(ADAPTIVE_EXPOSURE_AVAILABLE)
@@ -114,9 +112,15 @@ void main() {
114
112
}
115
113
#endif
116
+ color.rgb *= u_Exposure;
+
117
color.rgb = TonemapLottes( color.rgb );
118
119
+ else
120
121
+ {
122
123
+ }
124
125
color.rgb = clamp( color.rgb, vec3( 0.0f ), vec3( 1.0f ) );
126
0 commit comments