Aller au contenu

Message HrzProtocol.ViewportSettings

Defined in hrz/protocol/scene/view_settings.proto.


viewport: HrzProtocol.Bbox

Viewport size & location, normalized. This is the “full extent” of the camera view, combined with the fovy from the camera settings to create the perspective camera. (0, 0) is top-left corner. (1, 1) is bottom-right corner.

If multiple viewports overlap, the one for the scene view with the highest index is drawn on top.


scissor: HrzProtocol.Bbox

Portion of the viewport that is visible. (0, 0) is top-left corner. (1, 1) is bottom-right corner.

For instance if the viewport is ((0, 0), (1, 1)) and the scissor is ((0, 0), (0.5, 1)), only the left half of the camera will be visible.

If the viewport is ((0, 0), (0.5, 1)) and the scissor is ((0, 0), (1, 1)), the full camera is visible but only on the left half of the screen.