Viewport

Viewport

  • physical_position : glam::UVec2
  • physical_size : glam::UVec2
  • depth : core::ops::Range

Description

Render viewport configuration for the [Camera] component.

The viewport defines the area on the render target to which the camera renders its image. You can overlay multiple cameras in a single window using viewports to create effects like split screen, minimaps, and character viewers.

Functions