Page 1 of 1

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

Posted: 29 Sep 2023, 23:30
by Labont
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.

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

Posted: 30 Sep 2023, 19:27
by ENBSeries
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.