Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Scene
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Scene/WorldRenderCapture.h |
| Include | #include "Scene/WorldRenderCapture.h" |
Syntax
struct FRenderCaptureCoordinateConverter2D
Remarks
Render capture images use the render target coordinate system, which is defined such that:
- The upper-left corner is (0,0) in pixel space, (0,0) in UV space and (-1,1) in NDC space
- The bottom-right corner is (Width,Height) in pixel space, (1,1) in UV Space and (1,-1) in NDC space Pixel centers are offset by (0.5,0.5) from integer locations
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVector2d | DeviceToUV
(
FVector2d NDC |
Convert normalized device coordinates to render capture image UV coordinates. | |
| FVector2d | PixelToDevice
(
FVector2i Pixel, |
Convert render capture image pixel coordinates to normalized device coordinates. |