Introduce ICamera (View, Projection, Aspect) and make OrbitCamera implement it. TerrainRenderer.Draw and StaticMeshRenderer.Draw now accept ICamera, widening the call-site contract while leaving all runtime behavior unchanged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
10 lines
180 B
C#
10 lines
180 B
C#
using System.Numerics;
|
|
|
|
namespace AcDream.App.Rendering;
|
|
|
|
public interface ICamera
|
|
{
|
|
Matrix4x4 View { get; }
|
|
Matrix4x4 Projection { get; }
|
|
float Aspect { get; set; }
|
|
}
|