Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just the Sepia effect removal? #7

Open
Wosheereal opened this issue Jan 18, 2024 · 1 comment
Open

Just the Sepia effect removal? #7

Wosheereal opened this issue Jan 18, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Wosheereal
Copy link

I want to know how I could just have the Sepia post process effect removal? I saw what the rimlight removal looked and I don't like it.

@heatray
Copy link
Owner

heatray commented Jan 20, 2024

just add this line

+++ CG/PostProcess.cg
 void
 ApplySepia( inout float4 c,
 		    float4 sepiaColour )
 {
 	float3 vBW = float3( 0.3, 0.59, 0.11);
 	float3 col = c.rgb;
 	float brightness = dot( col, vBW );
 
+	sepiaColour.a = 0.0;
 	c = float4(lerp(col, brightness * sepiaColour.rgb, sepiaColour.a), 1.0);
 }

or see https://steamcommunity.com/sharedfiles/filedetails/?id=1831638289

@heatray heatray added the question Further information is requested label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants