Свойство | Type | Description | |
---|---|---|---|
m_AspectRatio | float | ||
m_CachedCameraData | float4 | ||
m_Camera2Proj | float4x4 | ||
m_Camera2World | float4x4 | ||
m_Far | float | ||
m_Near | float | ||
m_OrthoHeight | float | ||
m_PerspFOV | float | ||
m_World2Camera | float4x4 | ||
m_World2Proj | float4x4 | ||
m_bActive | bool | ||
m_bIsPerspective | bool |
Свойство | Type | Description |
---|
Méthode | Description | |
---|---|---|
BuildCameraRay ( float _X, float _Y, float3 &_Position, float3 &_Direction ) : void |
/// Builds a camera ray in WORLD space /// Builds a camera ray in CAMERA space
|
|
Camera ( ) : System |
Creates a default camera
|
|
CreatePerspectiveCamera ( float _FOV, float _AspectRatio, float _Near, float _Far ) : void |
Creates a perspective projection float4x4 for the camera
|
|
LookAt ( float3 _Eye, float3 _Target, float3 _Up ) : void |
Makes the camera look at the specified target from the specified eye position
|
|
ProjectPoint ( float3 _Position ) : float2 |
Projects a 3D point in 2D
|
|
ProjectVector ( float3 _Vector ) : float2 |
Projects a 3D vector in 2D
|
Méthode | Description | |
---|---|---|
RebuildProjection ( ) : void |
/// Creates an orthogonal projection float4x4 for the camera /// Rebuilds the camera projection data after a change
|
public BuildCameraRay ( float _X, float _Y, float3 &_Position, float3 &_Direction ) : void | ||
_X | float | The normalized X coordinate in [0,1] (0 is left screen border and 1 is right screen border) |
_Y | float | The normalized Y coordinate in [0,1] (0 is top screen border and 1 is bottom screen border) |
_Position | float3 | |
_Direction | float3 | |
Résultat | void |
public CreatePerspectiveCamera ( float _FOV, float _AspectRatio, float _Near, float _Far ) : void | ||
_FOV | float | |
_AspectRatio | float | |
_Near | float | |
_Far | float | |
Résultat | void |
public LookAt ( float3 _Eye, float3 _Target, float3 _Up ) : void | ||
_Eye | float3 | |
_Target | float3 | |
_Up | float3 | |
Résultat | void |
public ProjectPoint ( float3 _Position ) : float2 | ||
_Position | float3 | |
Résultat | float2 |
public ProjectVector ( float3 _Vector ) : float2 | ||
_Vector | float3 | |
Résultat | float2 |