VulkanMod
VulkanMod copied to clipboard
VRenderSystem.getFogData() returns null in multiple rendering passes (Clouds, Terrain, Sky)
Describe the bug
Description
VulkanMod crashes with NullPointerException because net.vulkanmod.vulkan.VRenderSystem.getFogData() returns null when setting up shader uniforms. The crash occurs in different rendering passes depending on configuration:
- With clouds enabled:
CloudRenderer.renderClouds - With clouds disabled:
WorldRenderer.renderSectionLayer(terrain) - After downgrading VulkanMod + with Beryl:
SkyRenderer2.renderSkyDisc(sky disc)
The issue happens entering a singleplayer world.
Tested variations:
- Clouds ON/OFF (still crashes)
- VulkanMod 0.6.8+26.1.2 (latest) and 0.6.6 (downgraded)
- With/without Beryl mod
Crash Logs
- Full crash reports attached (3 different crashes).
- Common stack trace always points to
Uniforms.lambda$setupDefaultUniforms*accessing fields likecloudEnd/environmentalStart/renderDistanceStartfrom null fog data.
Environment
- Minecraft: 26.1 (Fabric 0.19.3)
- VulkanMod: 0.6.8+26.1.2 (also reproduced on 0.6.6)
- Launcher: PCL
- OS: Windows 11 (amd64)
- GPU: NVIDIA GeForce RTX 4060 Laptop GPU (Vulkan 1.4.341)
- Java: 25.0.1 (Microsoft)
- Render Distance: 16
- Other relevant mods: Beryl 0.2.0-alpha, Not Enough Vulkan, Malilib family (Tweakeroo, MiniHUD, etc.), Jade, JourneyMap, Advanced XRay
Additional Info
- The crash is not present without malilib family mods.
- Happens on entering the world.
Steps to reproduce
- Launch Minecraft 26.1 Fabric with VulkanMod and malilib familes.
- Enter a singleplayer world.
- Crash occurs when entering.
Log files
now it can run without crashing on fabric API 0.145.1+26.1
now it can run without crashing on fabric API 0.145.1+26.1
If it's no longer an issue then you can close this.