High Pass Sharpening / Contrast Enhancement
- Echo
-
I am a Reshade 1.2 user and I always use your HighPassSharpening & Clarity shaders/effects. I finally could try Reshade 3 beta today after some SweetFX shaders got added (Thank you crosire!). But I feel like both shaders (HighPassSharpening & Clarity) got a bit limited and I use most of the the advanced settings (specially MaskContrast & Dark-/LightClamps) that are in Reshade 1.2 version that give me more control and a sharper more detailed effect (I marked the missing settings for easy read

///**HighPassSharpening**///
//>Sharpening Settings<\\
#define SharpPrecision 0.85 //[0.4:5.0] //-#'s > 1 = smaller radius, #'s < 1 = bigger radius. A small radius will sharpen small details, a large radius will sharpen large details.
#define SharpRadius 1 //[0:2] //-0 = 3x3 mask, 1 = 5x5 mask, 2 = 7x7 mask.
#define MaskContrast 1.00 //[0.00:1.00] //-Increases the contrast in the SharpMask.
#define BlendMode 1 //[1|2|3|4|5|6|7] //-1 = Soft Light(weak), 2 = Overlay(neutral), 3 = Multiply, 4 = Hard Light, 5 = Vivid Light, 6 = Screen(strong) 7 = Linear Light
#define HPSharpStrength 0.40 //[-0.50:2.00] //-Strength of the sharpening effect. Negative values soften the image.
//>Advanced Sharpening Settings<\\
#define DarkLineIntensity 5.00 //[0.0:40.0] //-Adjust the strength of dark halos. If the dark halos are clamped, higher values may increase the radius but not the darkness.
#define LightLineIntensity 2.25 //[0.0:40.0] //-Adjust the strength of light halos. If the light halos are clamped, higher values may increase the radius but not the brightness.
#define DarkLineClamp 0.250 //[0.00:0.50] //-
#define LightLineClamp 0.425 //[0.00:0.50] //-
#define ViewSharpMask 0 //[0|1] //-Set to 1 to view the SharpMask. Helpful when adjusting settings.
#define HighPass_ToggleKey 0x2D //[undef] //-Default is the "Insert" key. Change to RFX_ToggleKey to toggle with the rest of the Framework shaders.
///**Clarity**///
//>Clarity Settings<\\
#define ClarityOffset 3 //[1:20] //-Values less than 1 will decrease the radius, values greater than 1 will increase the radius.
#define ClarityMaskContrast 0.50 //[0.00:1.00] //-Increases the contrast in the ClarityMask.
#define ClarityBlendMode 1 //[1:7] //-1 = Soft Light(weak), 2 = Overlay(neutral), 3 = Multiply, 4 = Hard Light, 5 = Vivid Light, 6 = Soft Light#2(lighter), 7 = Soft Light#3(darker)
#define ClarityStrength 0.40 //[-0.50:2.00] //-Strength of the effect.
//>Advanced Clarity Settings<\\
#define DarkIntensity 1.25 //[0.0:5.0] //-Adjust the strength of dark halos.
#define LightIntensity 1.00 //[0.0:5.0] //-Adjust the strength of light halos.
#define DarkClamp 0.425 //[0.0:0.50] //-Adjust the strength of dark halos.
#define LightClamp 0.425 //[0.0:0.50] //-Adjust the strength of light halos.
#define ViewMask 0 //[0:1] //-The mask is what creates the effect. View it when making adjustments to get a better idea of how your changes will affect the image.
#define BlendIfDark 0 //[0:255] //-Any pixels below this value will be excluded from the effect. Set to 50 to target mid-tones.
#define BlendIfLight 255 //[0:255] //-Any pixels above this value will be excluded from the effect. Set to 205 to target mid-tones.
#define ViewBlendIfMask 0 //[0:1] //-Areas covered in RED receive contrast enhancement, areas covered in BLUE do not. The stronger the color, the stronger the effect.
//>Performance and Misc Settings<\\
#define ClarityTextureFormat 0 //[0|1|2] //-0 = R8, 1 = R16F, 2 = R32F.
#define ClarityTexScale 2 //[0|1|2] //-0 = no scaling, 1 = 1/2 resolution, 2 = 1/4 resolution. Reduces performance cost.
#define Clarity_ToggleKey 0x2D //[undef] //-Default is the "Insert" key. Change to RFX_ToggleKey to toggle with the rest of the Framework shaders.
Is it possible that you could add those advanced settings into Reshade 3 please? Thank you in advance for taking the time reading this.
Please Log in or Create an account to join the conversation.
- Ioxa
-
Topic Author
Echo wrote: Hey Loxa,
I am a Reshade 1.2 user and I always use your HighPassSharpening & Clarity shaders/effects. I finally could try Reshade 3 beta today after some SweetFX shaders got added (Thank you crosire!). But I feel like both shaders (HighPassSharpening & Clarity) got a bit limited and I use most of the the advanced settings (specially MaskContrast & Dark-/LightClamps) that are in Reshade 1.2 version that give me more control and a sharper more detailed effect (I marked the missing settings for easy read):
Warning: Spoiler!
///**HighPassSharpening**///
//>Sharpening Settings<\\
#define SharpPrecision 0.85 //[0.4:5.0] //-#'s > 1 = smaller radius, #'s < 1 = bigger radius. A small radius will sharpen small details, a large radius will sharpen large details.
#define SharpRadius 1 //[0:2] //-0 = 3x3 mask, 1 = 5x5 mask, 2 = 7x7 mask.
#define MaskContrast 1.00 //[0.00:1.00] //-Increases the contrast in the SharpMask.
#define BlendMode 1 //[1|2|3|4|5|6|7] //-1 = Soft Light(weak), 2 = Overlay(neutral), 3 = Multiply, 4 = Hard Light, 5 = Vivid Light, 6 = Screen(strong) 7 = Linear Light
#define HPSharpStrength 0.40 //[-0.50:2.00] //-Strength of the sharpening effect. Negative values soften the image.
//>Advanced Sharpening Settings<\\
#define DarkLineIntensity 5.00 //[0.0:40.0] //-Adjust the strength of dark halos. If the dark halos are clamped, higher values may increase the radius but not the darkness.
#define LightLineIntensity 2.25 //[0.0:40.0] //-Adjust the strength of light halos. If the light halos are clamped, higher values may increase the radius but not the brightness.
#define DarkLineClamp 0.250 //[0.00:0.50] //-
#define LightLineClamp 0.425 //[0.00:0.50] //-
#define ViewSharpMask 0 //[0|1] //-Set to 1 to view the SharpMask. Helpful when adjusting settings.
#define HighPass_ToggleKey 0x2D //[undef] //-Default is the "Insert" key. Change to RFX_ToggleKey to toggle with the rest of the Framework shaders.
///**Clarity**///
//>Clarity Settings<\\
#define ClarityOffset 3 //[1:20] //-Values less than 1 will decrease the radius, values greater than 1 will increase the radius.
#define ClarityMaskContrast 0.50 //[0.00:1.00] //-Increases the contrast in the ClarityMask.
#define ClarityBlendMode 1 //[1:7] //-1 = Soft Light(weak), 2 = Overlay(neutral), 3 = Multiply, 4 = Hard Light, 5 = Vivid Light, 6 = Soft Light#2(lighter), 7 = Soft Light#3(darker)
#define ClarityStrength 0.40 //[-0.50:2.00] //-Strength of the effect.
//>Advanced Clarity Settings<\\
#define DarkIntensity 1.25 //[0.0:5.0] //-Adjust the strength of dark halos.
#define LightIntensity 1.00 //[0.0:5.0] //-Adjust the strength of light halos.
#define DarkClamp 0.425 //[0.0:0.50] //-Adjust the strength of dark halos.
#define LightClamp 0.425 //[0.0:0.50] //-Adjust the strength of light halos.
#define ViewMask 0 //[0:1] //-The mask is what creates the effect. View it when making adjustments to get a better idea of how your changes will affect the image.
#define BlendIfDark 0 //[0:255] //-Any pixels below this value will be excluded from the effect. Set to 50 to target mid-tones.
#define BlendIfLight 255 //[0:255] //-Any pixels above this value will be excluded from the effect. Set to 205 to target mid-tones.
#define ViewBlendIfMask 0 //[0:1] //-Areas covered in RED receive contrast enhancement, areas covered in BLUE do not. The stronger the color, the stronger the effect.
//>Performance and Misc Settings<\\
#define ClarityTextureFormat 0 //[0|1|2] //-0 = R8, 1 = R16F, 2 = R32F.
#define ClarityTexScale 2 //[0|1|2] //-0 = no scaling, 1 = 1/2 resolution, 2 = 1/4 resolution. Reduces performance cost.
#define Clarity_ToggleKey 0x2D //[undef] //-Default is the "Insert" key. Change to RFX_ToggleKey to toggle with the rest of the Framework shaders.
Is it possible that you could add those advanced settings into Reshade 3 please? Thank you in advance for taking the time reading this.
I removed the MaskContrast setting because I was getting similar results using the Dark/LightIntensity settings, I'll take another look at it though.
And I don't remember why I removed the clamp settings. I'll put them back in and see if I can figure it out. I may have just forgot to put them in the new version.
Please Log in or Create an account to join the conversation.
- Echo
-
I removed the MaskContrast setting because I was getting similar results using the Dark/LightIntensity settings, I'll take another look at it though.
And I don't remember why I removed the clamp settings. I'll put them back in and see if I can figure it out. I may have just forgot to put them in the new version.
Awesome, thank you. I really hope you can add MaskContrast settings to both. You can try out my settings from my previous post (in the Spoiler text) to test it out and see the difference. Thanks!
Please Log in or Create an account to join the conversation.
- Echo
-
when will you be able to add the updated shaders (Clarity & Highpass) with MaskContrast/Instenity/Clamp settings?
Thanks in advance for the reply.
Please Log in or Create an account to join the conversation.
- F D B
-
First of all, thank you for creating this amazing shader.
However, I haven't been able to try it just yet, because despite following the instructions to install it and use it, I get all sort of red-color errors upon startup, all related to this shader.
I've read all the pages in this very topic but it seems no one else have this going on.
I'm using the Framework version. I've added the links to the Pipeline.
I don't know what else to do.
Hope you can help me out.
Thank you.
Please Log in or Create an account to join the conversation.
- Ioxa
-
Topic Author
F D B wrote: Hey Ioxa,
First of all, thank you for creating this amazing shader.
However, I haven't been able to try it just yet, because despite following the instructions to install it and use it, I get all sort of red-color errors upon startup, all related to this shader.
I've read all the pages in this very topic but it seems no one else have this going on.
I'm using the Framework version. I've added the links to the Pipeline.
I don't know what else to do.
Hope you can help me out.
Thank you.
What do the error messages say?
Please Log in or Create an account to join the conversation.
- F D B
-
Ioxa wrote:
F D B wrote: Hey Ioxa,
First of all, thank you for creating this amazing shader.
However, I haven't been able to try it just yet, because despite following the instructions to install it and use it, I get all sort of red-color errors upon startup, all related to this shader.
I've read all the pages in this very topic but it seems no one else have this going on.
I'm using the Framework version. I've added the links to the Pipeline.
I don't know what else to do.
Hope you can help me out.
Thank you.
What do the error messages say?
Well, I can't really say right now because I've already un-done the changes, in order to get everything working again. But right after launching the game, when ReShade starts loading everything, there were several lines in red color pointing to everything related to the IOFX shaders, the 6 files inside IOFX folder or the CFG.
If this isn't enough, I will try to install it again and then post the log.
Please Log in or Create an account to join the conversation.
- Ioxa
-
Topic Author
The error messages will most likely tell me exactly what the problem is. All I can do without them is make guesses.F D B wrote:
Ioxa wrote:
F D B wrote: Hey Ioxa,
First of all, thank you for creating this amazing shader.
However, I haven't been able to try it just yet, because despite following the instructions to install it and use it, I get all sort of red-color errors upon startup, all related to this shader.
I've read all the pages in this very topic but it seems no one else have this going on.
I'm using the Framework version. I've added the links to the Pipeline.
I don't know what else to do.
Hope you can help me out.
Thank you.
What do the error messages say?
Well, I can't really say right now because I've already un-done the changes, in order to get everything working again. But right after launching the game, when ReShade starts loading everything, there were several lines in red color pointing to everything related to the IOFX shaders, the 6 files inside IOFX folder or the CFG.
If this isn't enough, I will try to install it again and then post the log.
Please Log in or Create an account to join the conversation.
- StyleMaster
-
Ioxa wrote: Updated the shader files for compatibility with ReShade 2.0 and the new ReShade Assistant.
Download Shaders by Ioxa for ReShade 2.0
I made some small changes to some of the shaders but nothing major. The Clarity shader probably got the biggest change, I once again changed the options for adjusting the width of the effect. I think the way it is set up now gives the most customization for quality and performance. But I'm open to any ideas that may improve it.
I also uploaded a version of the shaders with an updated Gaussian shader. I'm not entirely sure I will keep it the way it is so consider this a test.
Download Shaders by Ioxa for ReShade 2.0 With Gauss
I changed the way the weights and offsets for the blur passes are calculated, this allows for a lot more flexibility when adjusting the blur width.
I added an option called SurfaceBlur which will help reduce halos that may appear around objects. This process used for doing this does not work very well in a separable filter so it causes some artifacts. As long as the blur strength isn't set too high they shouldn't be very noticeable.
I changed the "warm" option is GaussBloomWarmth. I'll never get it to look the way it did in SweetFX so I tried something a little different, I gave it a bit of a yellowish tint with a reddish tint around the edge. I don't know if I'll keep it this way or not, just something I wanted to try out.
I forgot to add a readme to the files but the install should be pretty straight forward. Merge the ReShade folder with your existing ReShade folder and overwrite the files when prompted. This will overwrite Pipeline.cfg, Shaders_by_Ioxa.cfg, Ioxa.undef, and Gaussian.fx if you've downloaded the files with Gauss.
If you have any questions, problems, or suggestions let me know!
Hello , kindof new to this im trying out ReShade_2.0.3_with_SweetFX_2.0 file with Supermodel as example
The gaussian effects isnt present in that version you already know
i tried d/l alot of these gauss.fx & gauss.h but i cant get it to work
i saw your file how could i make it work with ReShade_2.0.3_with_SweetFX_2.0
WHen i install it it doesnt have an Reshade folder , it has an Reshade.fx & Sweetfx.fx & a SweetFx Folder which has the Shaders inside
Could you help me out
Please Log in or Create an account to join the conversation.