Contents

RealityRenderer.CameraOutput.RelativeViewport

Structure defining a viewport for rendering with a camera.

Declaration

struct RelativeViewport

Overview

The units are relative to output texture size. To map normalized-device coordinates to the whole texture:

viewport = RealityRenderer.CameraOutput.RelativeViewport(originX: 0.0, originY: 0.0, width: 1.0, height: 1.0)

Assigning values more than 1.0 to width or height stretches the viewport in horizontal and vertical directions.

Assigning values less than 0.0 to originX or originY shifts the viewport into negative X and negative Y directions.

Topics

Initializers

Instance Properties