How to make Day/Night settings for CC effects in enbeffect.fx for GTA 5?

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

How to make Day/Night settings for CC effects in enbeffect.fx for GTA 5?

Following my previous topic, i'm now trying to make the CC Effects have a separate Day and Night Setting for GTA 5, i have an idea of how it should work but i dont know how to proceed.

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

Re: How to make Day/Night settings for CC effects in enbeffect.fx for GTA 5?

This is much more complicated thing for non experienced shader programmer. In short, need to dublicate parameters to make two types of them, day and night versions. Then every place original parameters used, replace by lerp(***paramNight, ***paramDay, ENightDayFactor) to interpolate.
For example this original:
color.r=dot(tempcolor, ECCChannelMixerR);
should turn to this:
color.r=dot(tempcolor, lerp(ECCChannelMixerRnight, ECCChannelMixerRday, ENightDayFactor));
and earlier this:
float3 ECCChannelMixerR <
string UIName="CC: Channel mixer R";
string UIWidget="Color";
> = {1.0, 0.0, 0.0};
must become this:
float3 ECCChannelMixerRday <
string UIName="CC: Channel mixer R day";
string UIWidget="Color";
> = {1.0, 0.0, 0.0};
float3 ECCChannelMixerRnight <
string UIName="CC: Channel mixer R night";
string UIWidget="Color";
> = {1.0, 0.0, 0.0};

So on for everything else which want to split.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
Post Reply