CameraComponent
Summary
Definition
Namespace: SDT4.Managed.Core.Components
Assembly: SDT4.Managed.Core.dll
sealed class CameraComponent
Inheritance:
Object ➔ Component ➔ CameraComponent
Implements:
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public get; set; ProjectionType |
CameraProjection | The projection type used when defining a camera |
public get; set; NearPlane |
Single | The near plane of the frustum. For perspective mode, valid numbers are exclusively positive numbers. Orthographic may assume any valid number |
public get; set; FarPlane |
Single | The far plane of the frustum. For perspective mode, this is often discarded to use infinite far planes instead. Orthographic may assume any valid number. |
public get; set; OrthoLeftPlane |
Single | The left plane of the frustum. Only valid in CameraProjection.Orthographic mode |
public get; set; OrthoRightPlane |
Single | The right plane of the frustum. Only valid in CameraProjection.Orthographic mode |
public get; set; OrthoTopPlane |
Single | The top plane of the frustum. Only valid in CameraProjection.Orthographic mode |
public get; set; OrthoBottomPlane |
Single | The bottom plane of the frustum. Only valid in CameraProjection.Orthographic mode |
public get; set; PerspectiveFov |
Single | The FOV (in radians) when using the CameraProjection.Perspective mode |
public get; set; AspectRatio |
Nullable<Single> | The aspect ratio (width / height) used in CameraProjection.Perspective mode When set to null, the aspect ratio is computed automatically based off of the viewport's resolution. |
OrthoLeftPlane Remarks
Note
Shard Tech 4 assumes a left-handed coordinate system.
OrthoRightPlane Remarks
Note
Shard Tech 4 assumes a left-handed coordinate system.
OrthoTopPlane Remarks
Note
Shard Tech 4 assumes a left-handed coordinate system.
OrthoBottomPlane Remarks
Note
Shard Tech 4 assumes a left-handed coordinate system.
Methods
public virtual Boolean Equals(Object? obj)
Parameters:
obj(Object?):
Returns:
public virtual Int32 GetHashCode()
Returns: