From 3704d7ce1e11d0a7f7a7f69976943ec3dfa4e5c9 Mon Sep 17 00:00:00 2001 From: MDietermann Date: Mon, 1 Jun 2026 15:48:10 +0200 Subject: [PATCH] feat(core): wire fog-distance uniforms in Game render loop --- Core/Game.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/Game.cs b/Core/Game.cs index 0c0096d..f0a0a5e 100644 --- a/Core/Game.cs +++ b/Core/Game.cs @@ -116,6 +116,9 @@ public sealed class Game : GameWindow this._shader.SetMatrix4("view", this._player.Camera.GetViewMatrix()); this._shader.SetMatrix4("projection", this._player.Camera.GetProjectionMatrix()); this._shader.SetInt("atlas", 0); + this._shader.SetFloat("u_caveDarkStartY", this._cfg.CaveDarkStartY); + this._shader.SetFloat("u_caveDarkEndY", this._cfg.CaveDarkEndY); + this._shader.SetFloat("u_caveMinBrightness", this._cfg.CaveMinBrightness); this._texture.Use(TextureUnit.Texture0); this._streamer.DrawAll((pos, renderer) =>