viewport - firtoz/react-three-renderer GitHub Wiki
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 |
|---|