SceneCamera
Namespace: Hex1b.Scene.Objects
Assembly: Hex1b.dll
Base class for all cameras in the 3D scene. Provides view and projection matrix calculations.
csharp
[Experimental("HEX1B_SCENE", UrlFormat = "https://github.com/hex1b/hex1b/blob/main/docs/experimental/scene.md")]
public abstract class SceneCamera : SceneObjectInheritance
Object → SceneObject → SceneCamera
Constructors
SceneCamera()
csharp
public SceneCamera()SceneCamera(string?)
Parameters:
name(String):
csharp
public SceneCamera(string? name)Properties
Far
Returns: Single
csharp
public float Far { get; set; }Near
Returns: Single
csharp
public float Near { get; set; }Methods
GetProjectionMatrix(int, int)
Get the projection matrix (transforms camera space to clip space).
Parameters:
Returns: Matrix4
csharp
public abstract Matrix4 GetProjectionMatrix(int viewportWidth, int viewportHeight)GetViewMatrix()
Get the view matrix (transforms world space to camera space).
Returns: Matrix4
csharp
public virtual Matrix4 GetViewMatrix()GetViewProjectionMatrix(int, int)
Get the combined view-projection matrix.
Parameters:
Returns: Matrix4
csharp
public Matrix4 GetViewProjectionMatrix(int viewportWidth, int viewportHeight)