Back to mods
Dark Vision project artwork

Vintage Story Mod DB · Vintage Story mod

Dark Vision

Makes players' eyes adapt to darkness dynamically. Considers both the light at your position and lights you're looking at, including dynamic lights from other players or entities. Adaptation ramps up for 15 seconds and maxes out at 60 by default. Lights are d

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Dark Vision release matches 1.22.0-rc.9?

Updated 6 days ago
Best match for your filters 1.3.6
Game version 1.22.0-pre.1, 1.22.0-pre.2, 1.22.0-pre.3
Loader Built-in Vintage Story mod system

Dark Vision 1.3.6 targets 1.22.0-pre.1, 1.22.0-pre.2, 1.22.0-pre.3. It must be installed on the client. Do not install it on the dedicated server. No extra mods listed for this file.

Where it goes

Is Dark Vision required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release Built-in Vintage Story mod system
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This Vintage Story file is marked client-only.

What else does Dark Vision 1.3.6 need?

1.3.6 on 1.22.0-rc.9. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Dark Vision without breaking your instance.

Built for Dark Vision 1.3.6 on 1.22.0-rc.9. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.3.6. It targets 1.22.0-pre.1, 1.22.0-pre.2, 1.22.0-pre.3; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.3.6. It opens that exact file at the source.

About this project

What does Dark Vision add?

Makes players' eyes adapt to darkness dynamically. Considers both the light at your position and lights you're looking at, including dynamic lights from other players or entities.

Adaptation ramps up for 15 seconds and maxes out at 60 by default. Lights are detected up to 40 blocks away in a narrow cone. A higher accuracy preset is available in config.
Unadaptation rate scales with both light intensity and distance.
Config is at ModConfig/darkvision.yaml. Changes apply without reloading the world. Can also be edited through configlib
Will try to detect toggleable worn lights.

Other features: vision gets desaturated in the dark, increased light sensitivity when adapted, overexposure when stepping into light, can be configured to disable adaptation in caves/enclosed spaces, light streak fx. All configurable. 

Servers: Config is enforced on clients by default, can be turned off. Some settings are not synced by design: dynamic lights, sampling intervals, streaks fx, raycast toggle and preset. Server config will be overridden by stat based mods like race or class mods. if you are an admin/mod, configlib will make you edit the server's config, not the client. You will have to edit your own client config manually.

Mod version 1.3.0+ no longer overrides base game shaders.

Source available under GPLv3.

 

If you want to control darkvision through a race or class or similar mod, here you go:

These are the stats you can control, much like PlayerModelLib stats.

These work as absolute values, like a normal config. These are not multipliers!
Important: if you don't set a value for these or you set 0, the server config will be read instead. If server config is not enforced, then client values will be read.
To force a value of 0, set a value of -1 instead. I know.

dv-maxBrightness // max brightness boost at max adaptation. 0 - 1 default: 0.2
dv-adaptationTime // time to reach max adaptation after ramp or if user set linear. 1 - 600 seconds. default: 60
dv-adaptationLossTime // time to lose adaptation from light at minimum unadaptation brightness with no other multipliers. 1 - 300 seconds. default: 30
dv-desaturationThreshold // adaptation threshold at which desaturation reaches full strength. 0 - 1 default: 0.2  DEPRECATED
dv-maxDesaturation // max desaturation strength. 0 = off 1 = full grayscale. default: 0.7
dv-exposureMultiplier // controls how strong the exposure effect is after looking at a light when adapted to darkness. a value of 0 (-1) will disable it. 0 - 2 default: 1
dv-exposureLag // controls how long the exposure effect lasts. a value of 0 (-1) will disable it. 0 - 30 seconds. default: 7
dv-rampTime // ramps up to a percentage of the adaptation value in this amount of time. used for faster initial adaptation. 1 - 600 seconds. default: 15
dv-rampTargetPercent // percentage of the adaptation value to ramp to. 0 - 100 default: 60 - can be used as linear adaptation if set to 100.
dv-desatStartLight // at this sunlight level or above, desaturation is 0. default: 8
dv-desatEndLight // at this light level or below, desaturation is at max strength. default: 3
dv-maxUnadaptationMultiplier // multiplier for how fast bright lights should reduce adaptation. default: 5
dv-closeRangeMultiplier // multiplier for adaptation drain for close light sources. Consider that this multiplier also multiplies the one above. default: 4
dv-streaksIntensity // controls the intensity of the streaks. default: 1
dv-streaksLength // controls the length of the streaks. default: 0.5

if you have issues implementing these in your mod contact me.

If you override/patch shaders and want to make your mod compatible with darkvision:

Mod version 1.3.0+ patches shaders at runtime instead of overriding them. If your mod replaces/patches vanilla shaders and breaks compatibility with darkvision, you can ship a patch file to fix it yourself.

Full documentation is available in assets/darkvision/config/shaderpatches/documentation

This is not something I will do for you.

Ko-fi Donate

Project description from Vintage Story Mod DB.

Pick your setup

Dark Vision releases for each Vintage Story version.

Choose the version and loader you play, then open the matching release.

44 available setups

Showing the newest 12 of 44 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Dark Vision versions and loaders

6 of 15 releases match
Clear filters

Looking for an older file? The official Vintage Story Mod DB project page is in Resources.