feat(rendering): distance fog and config-derived far plane
This commit is contained in:
@@ -29,7 +29,11 @@ public sealed class Player
|
||||
public Player(Configuration cfg, Vector3 spawnPosition, float aspectRatio)
|
||||
{
|
||||
this._cfg = cfg;
|
||||
this.Camera = new Camera(spawnPosition, aspectRatio) { Fov = cfg.Fov };
|
||||
this.Camera = new Camera(spawnPosition, aspectRatio)
|
||||
{
|
||||
Fov = cfg.Fov,
|
||||
FarPlane = (cfg.RenderDistanceHorizontal + 1) * VoxelChunk.Size,
|
||||
};
|
||||
}
|
||||
|
||||
public void Move(Vector3 delta) => this.Camera.Move(delta);
|
||||
|
||||
Reference in New Issue
Block a user