How to add Sepia

share shaders here
  • Author
  • Message
Offline
*blah-blah-blah maniac*
Posts: 552
Joined: 11 Apr 2012, 03:24

Re: How to add Sepia

Thank you so much, I copied and pasted it but now the GUI function for ENBeffect doesn't show. Does this included the effect.txt combination I was trying to figure out? I can't tell.

Here is my full enb with your edits.

http://www.speedyshare.com/JdmjS/JawZ-edits.rar
_________________
i5-6600k -- Nvidia GTX 970 -- 16Gb ram @3200mhz

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1938
Joined: 05 Mar 2012, 02:08

Re: How to add Sepia

No it was only for the enbeffect.fx, I wouldn't double up on one paste bin file like that.

I will take a look, but it shouldn't be causing issues, but I'll see what the culprit is once I fire it up.

Offline
*blah-blah-blah maniac*
Posts: 552
Joined: 11 Apr 2012, 03:24

Re: How to add Sepia

Thank you yet again my friend!
_________________
i5-6600k -- Nvidia GTX 970 -- 16Gb ram @3200mhz

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1938
Joined: 05 Mar 2012, 02:08

Re: How to add Sepia

It was the palette code, I ported it from my Fallout 4 file and forgot 1 constant in each tex2Dlod.

Replace the palette code with this one;

Code: Select all

#ifdef E_CC_PALETTE 
  float3 palette;
  float4 uvsrc = 0.0;

    color.rgb = saturate(color.rgb);
    float3 brightness = eadapt.xyz;
    brightness = (brightness / (brightness + 1.0));
    brightness = max(brightness.x, max(brightness.y, brightness.z));

    color.xyz = saturate(color.xyz);
    uvsrc.y   = brightness.r;
    uvsrc.x   = color.r;
    palette.r = tex2Dlod(_s7, uvsrc).r;
    uvsrc.x   = color.g;
    uvsrc.y   = brightness.g;
    palette.g = tex2Dlod(_s7, uvsrc).g;
    uvsrc.x   = color.b;
    uvsrc.y   = brightness.b;
    palette.b = tex2Dlod(_s7, uvsrc).b;

    color.rgb = palette.rgb;
#endif

Offline
User avatar
*blah-blah-blah maniac*
Posts: 849
Joined: 28 Dec 2011, 00:50

Re: How to add Sepia

Are you looking for something like the following? This can be done with a few twiddles of ENB 0.286 right out of the box:

Image

I love the green HUD on the Sepia image :P
_________________
Fallout 4 ENB Video Series | Skyrim ENB Video Series | My YouTube Channel
Intel i7-4700HQ @ 2.4GHz | NVidia GTX780M 4GB | 24GB RAM

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1938
Joined: 05 Mar 2012, 02:08

Re: How to add Sepia

He already has the sepia now, and then some. Even finished vertex porting the time factors now :P Haven't tested before and after (pixelvsvertex implementation) yet to see how or if it actually improved the compiling. But nice to know that it works anyway.

Offline
*blah-blah-blah maniac*
Posts: 552
Joined: 11 Apr 2012, 03:24

Re: How to add Sepia

Thank you for doing this. It works perfect. I am so freaking happy about this!
_________________
i5-6600k -- Nvidia GTX 970 -- 16Gb ram @3200mhz
Post Reply