Is there any way to adjust sepia so that

  • Posts: 1
1 month 2 weeks ago #1 by lacazet2k
Is there any way to adjust sepia in sweetfx 1.5.1 to only affect dark areas? what about other versions of sweetfx?

Please Log in or Create an account to join the conversation.

  • Posts: 68
1 month 1 week ago #2 by prod80
color.xyz = lerp( original_color.xyz, sepia_color.xyz, 1.0f - max(( dot( original_color.xyz, 0.3333f ) - 0.5f ) * 2.0f, 0.0f ));

Where;

color.xyz = your output
original_color.xyz = the color without any sepia applied
sepia_color.xyz = the color with sepia applied

The above will only apply sepia to shadows and mid tones, intensity 0..0.5 will be 100% applied and then it will ramp down to 0% between 0.5..1.0 intensity (1.0 being max).

Please Log in or Create an account to join the conversation.