How to make CC effects in GTA 5 work with UseOriginalPostProcessing enabled in enbeffect.fx?

Post Reply
  • Author
  • Message
Offline
Posts: 9
Joined: 27 Sep 2023, 23:45

How to make CC effects in GTA 5 work with UseOriginalPostProcessing enabled in enbeffect.fx?

I use ENB v0.492 and i've been trying to make them work but i don't understand much from the Vanilla post processing code, so if any of you guys know how, please let me know, i just started learning HLSL and i'm trying to figure this out.

Offline
User avatar
*blah-blah-blah maniac*
Posts: 17481
Joined: 27 Dec 2011, 08:53
Location: Rather not to say

Re: How to make CC effects in GTA 5 work with UseOriginalPostProcessing enabled in enbeffect.fx?

If you mean color correction, in the enbeffect.fx copy from #ifdef E_CC_PROCEDURAL till end of #endif //E_CC_PROCEDURAL all the code to the place before this line "r0.xyz = log2(r0.xyz);" and then just need to write new variables to match them. Like float3 color = r0.xyz; and later r0.xyz = color;
Something like this:

r0.xyz = saturate(r0.w * r0.xyz + r2.xyz);
loat3 color = r0.xyz;
#ifdef E_CC_PROCEDURAL
//activated by UseProceduralCorrection=true
float tempgray;
.........
.........
.........
color.b=dot(tempcolor, ECCChannelMixerB);
#endif //E_CC_PROCEDURAL
r0.xyz = color;
r0.xyz = log2(r0.xyz);
r0.xyz = Gamma * r0.xyz;
r0.xyz = exp2(r0.xyz);
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7

Offline
Posts: 9
Joined: 27 Sep 2023, 23:45

Re: How to make CC effects in GTA 5 work with UseOriginalPostProcessing enabled in enbeffect.fx?

ENBSeries wrote: 28 Sep 2023, 14:18 If you mean color correction, in the enbeffect.fx copy from #ifdef E_CC_PROCEDURAL till end of #endif //E_CC_PROCEDURAL all the code to the place before this line "r0.xyz = log2(r0.xyz);" and then just need to write new variables to match them. Like float3 color = r0.xyz; and later r0.xyz = color;
Something like this:

r0.xyz = saturate(r0.w * r0.xyz + r2.xyz);
loat3 color = r0.xyz;
#ifdef E_CC_PROCEDURAL
//activated by UseProceduralCorrection=true
float tempgray;
.........
.........
.........
color.b=dot(tempcolor, ECCChannelMixerB);
#endif //E_CC_PROCEDURAL
r0.xyz = color;
r0.xyz = log2(r0.xyz);
r0.xyz = Gamma * r0.xyz;
r0.xyz = exp2(r0.xyz);
It works! Thanks for your help.
Post Reply