From Step Mods | Change The Game
Delta c.png

ENBSeries - Shaders



This is a work in progress and is thus incomplete. While all information is applicable, it's not a complete, rounded reference.

DoF in-code parameters[edit | edit source]

Most of the depth of field (DoF) settings can be changed in the enbdepthoffield.fx file itself or in-game via the GUI. Note that not only the DoF code can be included in this file; any additional code may be added, removed or commented out to introduce a number of other simple effects applied along with DoF.

An example of a variable from enbdepthoffield.fx is showed below:

float	fADOF_BokehIntensity
		string UIName="DOF: Bokeh Intensity";
		string UIWidget="Spinner";
		float UIStep=0.01;
		float UIMin=0.0;
		float UIMax=1.0;
	> = {0.5};

As we can see, most improtant part of the above definition is the part describing the user interface (UI) components for the variable. According to the information ENB creates an entry in relevant INI file and at in-game GUI. First essential parameter of the UI setup is UIName of the variable - this string defines an identifier for the variable in both INI file and GUI. Via the name we can configure the variable as described above.

Other parameters can be omitted, depending on the type of the variable. In case of a boolean variable (can only have values false or true), the UIName parameter is the only one used. In case of numeric variables, like int (integer number) or float (floating-point number), UIMin and UIMax must be used. As their names state they define minimum and maximum values that the variable can have.

Next important parameter is UIWidget. It configures how the variable can be changed. There are two values the parameter can have: Spinner and Color. Spinner allows changing the value using arrows (visible at in-game GUI) and refers to numeric types (mostly float). The value ranges between number given with UIMin and UIMax parameters. Color is used in regard to 3-element floating-point vectors (float3), and allows to define them as RGB or HSV color (the actual value stored in INI file is always RGB).

The above description of the in-code parameters refer to all effect files and their variables. INI files containing values of the variables are created in the enbseries subdirectory (the same place where weather configuration files are located). The default values of the variables are defined at the end of the UI parameters setup.

Credits[edit | edit source]

A very special thank you to the authors and contributors who helped STEP in this endeavor:

Matso -author of Project MATSO ENB