2020-08-05 19:21:42 +00:00
|
|
|
using Encompass;
|
|
|
|
|
|
|
|
namespace KavTest.Components
|
|
|
|
{
|
2020-09-19 08:06:50 +00:00
|
|
|
public struct PerspectiveCameraComponent : IComponent
|
2020-08-05 19:21:42 +00:00
|
|
|
{
|
2020-09-19 08:06:50 +00:00
|
|
|
public float FieldOfView { get; }
|
|
|
|
public float AspectRatio { get; }
|
|
|
|
public float NearPlane { get; }
|
|
|
|
public float FarPlane { get; }
|
2020-08-05 19:21:42 +00:00
|
|
|
|
2020-09-19 08:06:50 +00:00
|
|
|
public PerspectiveCameraComponent(float fieldOfView, float aspectRatio, float nearPlane, float farPlane)
|
2020-08-05 19:21:42 +00:00
|
|
|
{
|
2020-09-19 08:06:50 +00:00
|
|
|
FieldOfView = fieldOfView;
|
|
|
|
AspectRatio = aspectRatio;
|
|
|
|
NearPlane = nearPlane;
|
|
|
|
FarPlane = farPlane;
|
2020-08-05 19:21:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|