BetterFog
Replaces REPO's original fog with configurable radial fog.
模組介紹 作者原文
BetterFog
BetterFog replaces REPO's built-in fog system with a custom shader.
REPO's built-in fog is not uniform in all directions around the player. This causes fog to appear further away in the player's peripheral vision, allowing them to see further into the map when looking from odd angles. BetterFog solves this by using a cyllinder-shaped fog that is always the same distance from the player in all directions.
BetterFog uses a custom Unity full-screen shader to reconstruct each visible surface's position, then applies fog from the surface's radial distance to the camera. The start and end distances are configurable, but the default values were chosen to match the feel of the built-in fog as closely as possible. This mod was made using AI generated code.
Configuration
After launching the game once, edit BepInEx/config/carnuke.betterfog.cfg.
- Enable Better Fog: Enables BetterFog's radial fog. Default: true.
- Start Distance: Distance in world units where fog begins. Default: 8.
- End Distance: Distance in world units where fog reaches full strength. Default: 16.
- Shop/Arena/Truck Start Distance: Distance in shop/arena/truck levels where fog begins. Default: 60.
- Shop/Arena/Truck End Distance: Distance in shop/arena/truck levels where fog reaches full strength. Default: 300.
One level module is 15 world units long.
Shop fog is also applied when the player is in the truck between levels.
Here are some additional gameplay ideas that the fog can be used for:
- Setting Start Distance to be a negative number causes the fog to appear thicker and more ominous. This can be used to make the game feel scarier.
- Setting End Distance to be very small makes it so the player can only see things nearby. This can make the game more challenging. Make sure that Start Distance is smaller than End Distance, or the fog will have a hard boundary instead of a gradual fade.
- If you are playing with "imposters", you can have the imposter play with a bigger End Distance so that they have more visibility than the regular players.
Known Issues
BetterFog causes a few minor visual issues:
- Transparent objects sometimes appear more clear than usual when viewed from certain angles.
- Fog rendered over death pit liquids can sometimes look strange. This is because the shader renders fog for the geometry that is normally hidden by the liquid texture.
- One room in Swiftbroom Academy has glass ceiling textures that should be opaque but are not.
Source Code
Project page:
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: