heatray / WUMPatch

Unofficial patch for Worms Ultimate Mayhem
MIT License
35 stars 3 forks source link

Just the Sepia effect removal? #7

Open Wosheereal opened 7 months ago

Wosheereal commented 7 months ago

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 commented 7 months ago

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