feat(app): extract ICamera interface from OrbitCamera
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>
This commit is contained in:
parent
560100e5b6
commit
5640c153f3
4 changed files with 13 additions and 3 deletions
10
src/AcDream.App/Rendering/ICamera.cs
Normal file
10
src/AcDream.App/Rendering/ICamera.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using System.Numerics;
|
||||
|
||||
namespace AcDream.App.Rendering;
|
||||
|
||||
public interface ICamera
|
||||
{
|
||||
Matrix4x4 View { get; }
|
||||
Matrix4x4 Projection { get; }
|
||||
float Aspect { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue