Navigation
API > API/Runtime > API/Runtime/Engine
Projection data for a FSceneView.
| Name | FSceneViewProjectionData |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/SceneView.h |
| Include Path | #include "SceneView.h" |
Syntax
struct FSceneViewProjectionData
Derived Classes
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CameraToViewTarget | FVector | The vector (including distance) from the camera to it's viewtarget, if set. Primarily only used for Ortho views. | SceneView.h | |
| ProjectionMatrix | FMatrix | UE projection matrix projects such that clip space Z=1 is the near plane, and Z=0 is the infinite far plane. | SceneView.h | |
| ViewOrigin | FVector | The view origin. | SceneView.h | |
| ViewRect | FIntRect | The unconstrained (no aspect ratio bars applied) view rectangle (also unscaled) | SceneView.h | |
| ViewRotationMatrix | FMatrix | Rotation matrix transforming from world space to view space. | SceneView.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMatrix ComputeViewProjectionMatrix() |
SceneView.h | ||
const FIntRect & GetConstrainedViewRect() |
SceneView.h | ||
float GetNearPlaneFromProjectionMatrix () |
SceneView.h | ||
const FIntRect & GetViewRect() |
SceneView.h | ||
bool IsPerspectiveProjection() |
SceneView.h | ||
bool IsValidViewRectangle() |
SceneView.h | ||
void SetConstrainedViewRectangle
(
const FIntRect& InViewRect |
SceneView.h | ||
void SetViewRectangle
(
const FIntRect& InViewRect |
SceneView.h | ||
bool UpdateOrthoPlanes
(
FMinimalViewInfo& MinimalViewInfo |
SceneView.h | ||
bool UpdateOrthoPlanes
(
bool bUseCameraHeightAsViewTarget |
SceneView.h | ||
bool UpdateOrthoPlanes
(
float& NearPlane, |
SceneView.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float GetNearPlaneFromProjectionMatrix
(
const FMatrix& ProjectionMatrix |
Function for retrieving the NearPlane from the existing projection matrix. | SceneView.h | |
static bool UpdateOrthoPlanes
(
FSceneViewProjectionData* InOutProjectionData, |
Function for correcting Ortho camera near plane locations to avoid artifacts behind camera view origin. | SceneView.h |