Please use english language
It is currently 23 Sep 2017, 03:58

All times are UTC


Forum rules


new topics are not allowed in this subsection, only replies.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 17 Jan 2017, 07:48 
Offline
*blah-blah-blah maniac*
User avatar

Joined: 27 Dec 2011, 08:53
Posts: 11263
Location: St.Petersburg
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:
Texture2D PaletteTexture
<
   string UIName = "Palette texture";
   string ResourceName = "enbpalette.bmp";
>;

Find this string:
Code:
#ifdef E_CC_PROCEDURAL

and in empty line before it insert this code:
Code:
{
   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

_________________
Core i5-4690K 3.5 GHz, 16 Gb ram, GeForce 650 Ti 2 Gb, X-Fi Xtreme Music, WinXP/Win7
I am INFP, not the brutal, godamnit.


Top
 Profile  
 
PostPosted: 17 Jan 2017, 21:06 
Offline

Joined: 08 Jan 2017, 12:47
Posts: 9
hm... I try it many times but I have this error message

Image

Image


Top
 Profile  
 
PostPosted: 17 Jan 2017, 21:22 
Offline
*sensei*

Joined: 05 Apr 2014, 10:29
Posts: 491
Location: Taiwan
@Marcel_SVK

He means the other #ifdef E_CC_PROCEDURAL, that followed by

Code:
#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// 24G RAM
Flickr
YouTube


Top
 Profile  
 
PostPosted: 18 Jan 2017, 13:19 
Offline

Joined: 08 Jan 2017, 12:47
Posts: 9
Now it works. Thank you


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group