Forum rules
new topics are not allowed in this subsection, only replies.
-
Offline
- *blah-blah-blah maniac*
- Posts: 17581
- Joined: 27 Dec 2011, 08:53
- Location: Rather not to say
This modification of default shader file allow to create palette similar to old versions of the mod
Open enbeffect.fx with any text editor and put this at very beginning of the file:
Code: Select all
Texture2D PaletteTexture
<
string UIName = "Palette texture";
string ResourceName = "enbpalette.bmp";
>;
Find this string:
and in empty line before it insert this code (check
//UNCOMMENT THIS FOR FALLOUT 4):
Code: Select all
{
//float grayadaptation=TextureAdaptation.Sample(Sampler0, IN.txcoord0.xy).x; //UNCOMMENT THIS FOR FALLOUT 4
color.rgb=saturate(color.rgb);
float3 brightness=grayadaptation;//adaptation luminance
brightness=(brightness.x/(brightness.x+1.0));//new version
float3 palette;
float4 uvsrc=0.0;
uvsrc.y=brightness.r;
uvsrc.x=color.r;
palette.r=PaletteTexture.Sample(Sampler1, uvsrc).r;
uvsrc.x=color.g;
uvsrc.y=brightness.g;
palette.g=PaletteTexture.Sample(Sampler1, uvsrc).g;
uvsrc.x=color.b;
uvsrc.y=brightness.b;
palette.b=PaletteTexture.Sample(Sampler1, uvsrc).b;
color.rgb=palette.rgb;
}
Then create enbpalette.bmp file and place to game folder
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
-
Offline
- Posts: 9
- Joined: 08 Jan 2017, 12:47
hm... I try it many times but I have this error message
-
Offline
- *blah-blah-blah maniac*
- Posts: 565
- Joined: 05 Apr 2014, 10:29
- Location: Taiwan
@Marcel_SVK
He means the other #ifdef E_CC_PROCEDURAL, that followed by
Code: Select all
#ifdef E_CC_PROCEDURAL
//activated by UseProceduralCorrection=true
float tempgray;
float4 tempvar;
float3 tempcolor;
_________________
Intel Xeon L5639 6C12T @3.96GHz
| Gigabyte ga-x58a-ud3r
| MSI GTX680 4G
| 48G RAM
| Intel 760p Nvme w clover bootloader
Flickr
YouTube
-
Offline
- Posts: 9
- Joined: 08 Jan 2017, 12:47
Now it works. Thank you