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