ceejaydk / sweetfx Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
LiftGammaGain.fx line 39 applies gamma input using formula: color = pow(abs(color), 1.0 / RGB_Gamma);
However, Tonemap.fx line 43 uses the formula color = pow(color, Gamma);
Is one of these implementations wrong?
Hi CeeJay, awesome work on your shaders!
I am unable to understand the math of the Technicolor 2 shader:
https://github.com/CeeJayDK/SweetFX/blob/master/Shaders/Technicolor2.fx
Is that math dynamic based on the image? Or is it safe/possible to convert that whole effect to a static LUT (with zero visual differences)?
Can I use use SweetFX on its own, without installing ReShade? The reason I'm asking is that ReShade cannot be used along with DXVK, but SweetFX itself can be chained with other libraries, and I want to use it with DXVK to get some performance boost in some badly optimized dx11-games.
I wanted to use 2 or 3 different layer.png images for an FPS game that does not show gun on screen. I wanted for example a rifle,pistol and grenade.
I can make 3 .pngs one for each weapon but is there a way I could swap them in game without alt/tabbing and manually swapping the layer.png every time I swap weapons in my single player game.
Hi I use this shader to desaturate dark colors in mpv. I want to make something similar but with vibrance instead of saturation. Can you help me out with that?
Thank you :)
//!PARAM Strength
//!DESC Desat Strength
//!TYPE float
//!MINIMUM 0
//!MAXIMUM 1
1
//!HOOK MAIN
//!BIND HOOKED
//!DESC Desaturation smooth
#define Thresh 35/255.
#define w 10/255.
#define CoefLuma vec4(0.2126, 0.7152, 0.0722, 0) //sRGB, HDTV
/* simple threshold with mpv glsl
Strength*desaturation [0 to1.0], 0: full color, 1: grayscale.
*/
vec4 hook() {
vec4 c0 = HOOKED_texOff(0);
float desaturation = smoothstep(Thresh + w, Thresh - w, dot(c0, CoefLuma));
// return vec4(desaturation, 1);
c0.rgb = mix(c0.rgb, vec3(dot(c0, CoefLuma)), Strength*desaturation);
return c0;
}
In DX10 CAS blur the game instead of sharpening .
in DX9 work just fine.
Edit: look's like it's affecting all games that uses DX10.
How to Switch to SRGB again? instead of linear. or you can just add checkbox like LordOfLunacy sharpcontrast.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.