Jump to content


Photo

Modular Shader Library for ENBSeries [Fallout 4]

enbseries fallout4

  • Please log in to reply
4 replies to this topic

#1 JawZ

JawZ

    Thane

  • Mod Authors
  • PipPipPipPipPipPip
  • 390 posts

Posted 02 December 2015 - 05:00 AM

INTRODUCTION
While chatting with some folks at the STEP forum in the enbseries.ini guide, we, myself, Aiyen, Matso and TechAngel,
agreed that it would be helpful to newcomers to the ENBSeries "world" to supply them with easy and highly configurable
shader files. And that it had a clean look with good amount of info in them, letting the "reader" of the code see what each
code line actually do to achieve that particular visual effect.
So I started whipping up my own shader library, borrowing the base template, sort of anyway, from Aiyen's Skylight ENB.

This is however not an extension of Aiyen's Skylight ENB preset, rather something totally different. A base code library for
anyone to configure and expand how they see fit.


FEATURES
Highly customizable and easy customization and addition of various effects for the purpose of altering the visuals.
All ENBSeries default shader effects in easy accessible and injectable .fxh files
Entirely new effects, compared to what is available in the default ENBSeries shader files
Currently only effects for enbeffect.fx, enbbloom.fx and effect.txt

EFFECT LIST

ENBSeries Game Color-Correction effect, also known as APPLYGAMECOLORCORRECTION

ENBSeries Post-Process methods, v1, v2, v3, v4

Reinhard Tonemapping

Filmic ALU Tonemapping

Uncharted 2D Tonemapping

Improved Tonemapping

Sepia Tone

ENBSeries Procedural Color-Correction

Control of Shadows and Highlights

SweetFX Vibrance and Saturation controls

3D LUT

SweetFX Split Screen control

Clip Mode, to display over and underexposed colors

Multiple helper functions such as Yxy, HSV, HSL color space conversion, Average/percieved luminance calculations.

And more to come...

 

 

HOW TO INJECT EFFECTS



First you need to include the files into the enbeffect.fx, you do that with this code line;
NOTE: elepHelpers.fxh and enbAGCC.fxh will be used for this example.

#include "/Modular Shaders/msHelpers.fxh" // This code line needs to be added before the Vertex Shader section inside a .fx or .txt
#include "/Modular Shaders/enbeffect/enbAGCC.fxh"

There, you have now successfully added/included the helper function library and the APPLYGAMECOLORCORRECTION effect library into your file.

Now you need to include it into the rendering stage so it will have an effect on the render output.

For that you need to add this code line for the AGCC code to take affect;
 

color.rgb = enbAGCC(color, IN.txcoord0.xy); // This code line goes into the Pixel shader (PS_Draw) after all initialization code is done

Like this;
 

// PIXEL SHADER
float4 PS_Draw(VS_OUTPUT_POST IN, float4 v0 : SV_Position0) : SV_Target
{
  float4 res;
  float4 color;
  color  = TextureColor.Sample(Sampler0, IN.txcoord0.xy);                 /// HDR scene color

/// AGCC
    if (ENABLE_AGCC==true) color = enbAGCC(color, IN.txcoord0.xy);  /// Requires enbAGCC.fxh active

  res.xyz=saturate(color);
  res.w=1.0;
  return res;
}

And to be able to toggle the AGCC code in the GUI;
 

// Add the below GUI annotation at the top of the file
bool ENABLE_AGCC <
string UIName = "Enable Game Post-Processing";
> = {true};

 



DOWNLOAD


Edited by JawZ, 18 September 2016 - 08:39 AM.

  • 1

#2 Kesta

Kesta

    Thane

  • Mod Authors
  • PipPipPipPipPipPip
  • 470 posts

Posted 02 December 2015 - 05:15 AM

Sooo... Boris made it. ENBSeries is here. Bye bye ReShade ^^

 

 

Thanks a lot for the files, I'll have a look as soon as I can :)


  • 0

#3 JawZ

JawZ

    Thane

  • Mod Authors
  • PipPipPipPipPipPip
  • 390 posts

Posted 02 December 2015 - 11:53 AM

Yeah just going to port some worthwhile effects and it's bye bye ReShade ;)

But it currently contains a good mix of visual effects though, and development tools as well.

 

Let me know if any trouble arises for you or if you have any particular effect request.


  • 0

#4 Aiyen

Aiyen

    Dragon King

  • Super Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3,536 posts

Posted 02 December 2015 - 12:10 PM

While I am flattered then I was not aware that my preset was usable for FO4 :P 

 

Jest aside... lovely that you took the time to convert this for use with the FO binaries! I am sure it will help someone have some good ol colorful fun come winter! 



#5 JawZ

JawZ

    Thane

  • Mod Authors
  • PipPipPipPipPipPip
  • 390 posts

Posted 02 December 2015 - 01:51 PM

You know copy/pasting ordeals :P

 

Hopefully yes. Getting it out this early might help spark a better interest for it than it has for Skyrim, or knowledge of it.


  • 0



Also tagged with one or more of these keywords: enbseries, fallout4

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users