feat(rendering): distance fog and config-derived far plane
This commit is contained in:
@@ -40,4 +40,12 @@ public class CameraTests
|
||||
var camera = new Camera(Vector3.Zero, 1.5f);
|
||||
Assert.NotEqual(Matrix4.Identity, camera.GetProjectionMatrix());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void FarPlane_ChangesProjection()
|
||||
{
|
||||
var near = new Camera(Vector3.Zero, 1f) { FarPlane = 100f };
|
||||
var far = new Camera(Vector3.Zero, 1f) { FarPlane = 200f };
|
||||
Assert.NotEqual(near.GetProjectionMatrix(), far.GetProjectionMatrix());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user