feat(core): wire fog-distance uniforms in Game render loop
This commit is contained in:
@@ -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) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user