Mods / Cavern Darkness

Tags: #Graphics
Author: CrSilent
Side: Client
Created: Sep 17th 2024 at 9:15 PM
Last modified: Sep 18th 2024 at 12:04 AM
Downloads: 718
Follow Unfollow 29

Latest release (for Vintage Story 1.19.8, outdated):
caverndarkness-1.0.0.zip  1-click install


You are exploring underground, torch in hand, searching for some ores and slowly making yourself deeper in the cavern. Suddenly, you fall into a pool of water, your torch extinguishes and... Huh, hundreds of meters down and I can somehow still make out the cavern walls in this supposed to be complete darkness. Maybe my body emits light?...

 

 

Very small client-side mod which "removes" minimal block light completely.

The key here is that it only changes the shader, therefore the actual light level of the blocks don't change.

 

Notes

  • I'm no expert in shaders and this one here is quite a simple solution. Visual bugs are to be expected.
  • It should be compatible with basically anything except shader mods which change the base lightning and fog shaders.

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
1.0.0 caverndarkness 718 Sep 18th 2024 at 12:04 AM caverndarkness-1.0.0.zip 1-click install

Initial release.


9 Comments (oldest first | newest first)

💬 Scivix, Sep 23rd at 1:15 AM

@Devin_August I went ahead and posted your patch to this mod named "CrSilent's Cavern Darkness" I tried crediting you and Silent and I believe you both have editing rights to it

💬 CrSilent , Aug 25th at 11:18 PM

Devin_August

Thanks a lot for taking the effort in patching this to make it work for 1.20!

Sadly, I dont plan on updating the mod for the foreseeable future at all, so feel free to upload your own updated version of this!

💬 Devin_August, Jul 30th at 7:33 PM

Complete list of things needed to patch this mod for 1.20.12:

go into mod folder, assets->game->shaderincludes

open fogandlight using notepad++

add this line after line 26 without the quotations:

"#include fogspheres.ash"

now scroll down to line 127 or around there to where it says "mod note"

find the line that says "if (bBlock < 0.015)" and change it to 0.06

now scroll down all the way to the bottom and change the line that starts with "vec4 applyfog" with the complete function 

"

vec4 applyFog(vec4 worldPos, vec4 rgbaPixel, vec4 rgbaFog, float fogMin, float fogDensity) {
float amount = getFogLevel(worldPos, fogMin, fogDensity);
vec4 outcolor = vec4(mix(rgbaPixel.rgb, rgbaFog.rgb, amount), rgbaPixel.a * rgbaFog.a);

outcolor = applySpheresFog(outcolor, amount, worldPos.xyz);

return outcolor;
}

"

I changed some rgba value somewhere in there too to match it with the current game version of the lightandfog file. also readded the extradistancefog. doubt it has any affect on how the game will run.

If the author reads this I will send them the patched file if they request it, or if given permission I will upload it myself. 

💬 Froshure, May 5th at 5:26 AM

Does not work on 1.20.x, for anyone curious.

💬 icehorse, Feb 21st at 2:13 AM

Humans are actually bioluminescent in the extreme darkest of dark

💬 QBSteve, Jan 17th at 7:06 PM

washaa It also crashes for me :/

💬 washaa, Dec 30th 2024 at 3:31 PM

Has anyone tried this with 1.20? It carshes on load for me...

💬 CrSilent , Sep 18th 2024 at 12:57 PM

There are no direct conflicts with the volumetric shader mod but I can' guarantee that they are fully compatible either. You can use them together but visual glitches might appear.

RuneScholar

💬 RuneScholar, Sep 18th 2024 at 5:48 AM

So I would assume this would conflict with the volumetric shader mod?

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом