New Clarity shader

  • Posts: 179
2 months 2 weeks ago #1 by klotim
The clarity shader hasn't been updated for a while, it would be nice with a updated clarity with hopefully better performance to bring more depth to flat lightning in some games.
The current performance is quite bad atm.

Hopefully someone would take a look at this :)
The following user(s) said Thank You: Viper_Joe

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

  • Posts: 67
2 months 1 week ago #2 by aaronth07
Replying to save.

But I yeah, I agree totally. The legacy Clarity shader with some optimizations could be great.
The following user(s) said Thank You: klotim

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

  • Posts: 179
2 months 1 week ago #3 by klotim
Hopefully someone will take a look at it.

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

  • Posts: 122
2 months 1 week ago #4 by prod80
I have been breaking my head over the Lightroom "Texture" effect, which is like a less crude version of Clarity, but thus far haven't been able to create a good enough replicate that it's actually useful.

Texture is an effect based on a highpass where the texture positive values are blended with overlay or softlight blending technique. But one has to isolate the exact tonal frequencies this should happen in. I'm also not quite sure which color space they are using either, because seems I get quite OK results in RGB but at the same time it's not good enough. Perhaps they are using some other color space, like the AB component of LAB or something.

Maybe one day, once I figured it out entirely.
The following user(s) said Thank You: klotim, Viper_Joe, aaronth07

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

  • Posts: 7
2 months 1 week ago - 2 months 1 week ago #5 by Swartz27
Nvidia Freestyle has it's own version of a Clarity filter that's more lightweight in how it's programmed, but it likely wouldn't be legal to use in Reshade, and even if it was you'd need to convert it from Shader Model 5.0 to ReShade FX (which is basically modified Shader Model 3.0, sorta).

In a selfish way I wish Reshade already used Shader Model 5.0 style language simply because I had learned that and never learned Shader Model 3.0 (which was DirectX 9, 5.0 is DirectX 11). But, to each their own.

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

  • Posts: 179
2 months 1 week ago #6 by klotim

prod80 wrote: I have been breaking my head over the Lightroom "Texture" effect, which is like a less crude version of Clarity, but thus far haven't been able to create a good enough replicate that it's actually useful.

Texture is an effect based on a highpass where the texture positive values are blended with overlay or softlight blending technique. But one has to isolate the exact tonal frequencies this should happen in. I'm also not quite sure which color space they are using either, because seems I get quite OK results in RGB but at the same time it's not good enough. Perhaps they are using some other color space, like the AB component of LAB or something.

Maybe one day, once I figured it out entirely.


You definitely have the knowledge, all good luck to you, hope you find a way to solve it!

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

  • Posts: 1
1 month 2 days ago - 1 month 2 days ago #7 by amymor

klotim wrote: The clarity shader hasn't been updated for a while, it would be nice with a updated clarity with hopefully better performance to bring more depth to flat lightning in some games.
The current performance is quite bad atm.

Hopefully someone would take a look at this :)


I just joined to say i found a clarity called "Clarity2.fx" . Here is my test result in Cod 4 MW(dx9):

Reshade off: 300-310 fps
Clarity.fx on: 145-150 fps
Clarity2.fx on: 255-260 fps
B)
Better performance and and wider slider for higher clartiy

Download link:
github.com/Mortalitas/GShade/blob/master/Shaders/Clarity2.fx
The following user(s) said Thank You: klotim, aaronth07

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