[Fallout 4] ENB Simple Night Vision Adjust

share shaders here
Post Reply
  • Author
  • Message
Offline
Posts: 24
Joined: 02 Jan 2022, 06:30

[Fallout 4] ENB Simple Night Vision Adjust

Hello guys

This ENB(enbeffect.fx) Simple Night Vision Adjust slightly tweaks Weapons Night Vision, "Night Person" perk, VATS and Pause Menu at same time.

The Night Vision effect in Vanilla is very weak but can "annoy" some people.
The last quest in Institute with the "Night Person" perk and with stealth power armor is the worst case scenario, even in Vanilla.

In ENB presets with over or under brightness/contrast changes a fine adjustment of Night Vision properties becomes essential for good gameplay.

Here a example:
https://www.youtube.com/watch?v=6UXyBMCDAUs

Regarding the code, a simple change in a float 3 value to avoid any scenario incompatibility(ever ≥0) taking into account that the effect can be used by other relevant functions in the code.

enbeffect.fx:

Between original Lines 165 and 166

Code: Select all

bool	NVEnable
<
	string UIName="CC: Activate NV lens settings";
> = {true};

float	NVLensLevelExterior
<
	string UIName="CC: NV lens exterior level";
	string UIWidget="Spinner";
	float UIMin=0.0;
	float UIMax=20.0;
> = {1.0};

float	NVLensOffsetNight
<
	string UIName="CC: NV lens exterior night offset";
	string UIWidget="Spinner";
	float UIMin=0.0;
	float UIMax=20.0;
> = {0.0};

float	NVLensLevelInterior
<
	string UIName="CC: NV lens interior level";
	string UIWidget="Spinner";
	float UIMin=0.0;
	float UIMax=20.0;
> = {1.0};

float3	NVLensColor
<
	string UIName = "CC: NV lens color filter";
	string UIWidget = "color";
> = {0.2125, 0.7154, 0.0721};
Between original Lines 289 and 290

Code: Select all

float3 NVlens;
	NVlens = float3(0.2125, 0.7154, 0.0721);

	if (NVEnable)
	{
	 NVlens = NVLensColor*((NVLensLevelInterior*EInteriorFactor)+((NVLensLevelExterior+(NVLensOffsetNight*(1-ENightDayFactor)))*(1-EInteriorFactor)));
	}

Alteration in original Line 317

Code: Select all

r0.x = dot(r1.xyz, NVlens);

Thanks Boris for ENB and the rich documentation.

Offline
User avatar
*blah-blah-blah maniac*
Posts: 17559
Joined: 27 Dec 2011, 08:53
Location: Rather not to say

Re: [Fallout 4] ENB Simple Night Vision Adjust

Code tag don't work on this forum after update, so better do formatting as other text type.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7

Offline
Posts: 24
Joined: 02 Jan 2022, 06:30

Re: [Fallout 4] ENB Simple Night Vision Adjust

Here the enbeffect.fx with changes:
enbeffect.fx
(13.93 KiB) Downloaded 1928 times

Between original Lines 165 and 166
bool NVEnable
<
string UIName="CC: Activate NV lens settings";
> = {true};

float NVLensLevelExterior
<
string UIName="CC: NV lens exterior level";
string UIWidget="Spinner";
float UIMin=0.0;
float UIMax=20.0;
> = {1.0};

float NVLensOffsetNight
<
string UIName="CC: NV lens exterior night offset";
string UIWidget="Spinner";
float UIMin=0.0;
float UIMax=20.0;
> = {0.0};

float NVLensLevelInterior
<
string UIName="CC: NV lens interior level";
string UIWidget="Spinner";
float UIMin=0.0;
float UIMax=20.0;
> = {1.0};

float3 NVLensColor
<
string UIName = "CC: NV lens color filter";
string UIWidget = "color";
> = {0.2125, 0.7154, 0.0721};



Between original Lines 289 and 290

float3 NVlens;
NVlens = float3(0.2125, 0.7154, 0.0721);

if (NVEnable)
{
NVlens = NVLensColor*((NVLensLevelInterior*EInteriorFactor)+((NVLensLevelExterior+(NVLensOffsetNight*(1-ENightDayFactor)))*(1-EInteriorFactor)));
}


Alteration in original Line 317
r0.x = dot(r1.xyz, NVlens);

Offline
Posts: 1
Joined: 13 Nov 2022, 10:35

Re: [Fallout 4] ENB Simple Night Vision Adjust

I'm using PRC (https://www.nexusmods.com/fallout4/mods/6796) and trying to fix Night Vision.
I checked out your video and it looks good, but I have no idea where to insert your code into my enbeffect.fx
The file I'm currently using came with the mod install so I have no clue about how it works exactly.

If you don't mind and can spare the time could you take a look where to insert your code into my file?

Here's a link to my file: enbeffect
Post Reply