Navigation
API > API/Runtime > API/Runtime/Renderer
Description
The normal GetDownscaledRect can produce overlapping rects where multiple viewports are present, because the Min rounds down, while the Max rounds up. This variation rounds up for the far edges of the viewport, but rounds down for everything else, avoiding this issue.
| Name | GetDownscaledViewRect |
| Type | function |
| Header File | /Engine/Source/Runtime/Renderer/Public/ScreenPass.inl |
| Include Path | #include "ScreenPass.inl" |
FIntRect GetDownscaledViewRect
(
FIntRect Rect,
FIntPoint ViewExtent,
FIntPoint Divisor
)