Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

viewport

Firtina Ozbalikci edited this page Jul 29, 2017 · 16 revisions

Wiki » Internal Components » Views » viewport

viewport

See THREE.WebGLRenderer.setViewport

It can only be placed into the root component.

If the mainCamera property of the root component is not set, then the scene will be rendered into the viewports.

Attributes

x

number required: The x (px) position of the viewport in the canvas

y

number required: The y (px) position of the viewport in the canvas

width

number required: The width (px) of the viewport in the canvas

height

number required: The height (px) of the viewport in the canvas

cameraName

string required: The name of the camera to render

===

View Source
Clone this wiki locally