feat(core): wire fog-distance uniforms in Game render loop

This commit is contained in:
2026-06-01 15:48:10 +02:00
parent aa1aa6fec6
commit 3704d7ce1e

View File

@@ -116,6 +116,9 @@ public sealed class Game : GameWindow
this._shader.SetMatrix4("view", this._player.Camera.GetViewMatrix()); this._shader.SetMatrix4("view", this._player.Camera.GetViewMatrix());
this._shader.SetMatrix4("projection", this._player.Camera.GetProjectionMatrix()); this._shader.SetMatrix4("projection", this._player.Camera.GetProjectionMatrix());
this._shader.SetInt("atlas", 0); 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._texture.Use(TextureUnit.Texture0);
this._streamer.DrawAll((pos, renderer) => this._streamer.DrawAll((pos, renderer) =>