Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/engine/renderer/glsl_source/cameraEffects_fp.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ void main()
vec4 color = texture2D(u_CurrentMap, st);
color *= u_GlobalLightFactor;

if ( u_SRGB )
{
convertToSRGB( color.rgb );
}

color.rgb *= u_Exposure;

#if defined(r_highPrecisionRendering) && defined(HAVE_ARB_texture_float)
Expand All @@ -99,6 +94,11 @@ void main()

color.rgb = clamp( color.rgb, vec3( 0.0f ), vec3( 1.0f ) );

if ( u_SRGB )
{
convertToSRGB( color.rgb );
}

#if defined(r_colorGrading)
// apply color grading
vec3 colCoord = color.rgb * 15.0 / 16.0 + 0.5 / 16.0;
Expand Down
Loading