setViewOffset method
void
setViewOffset()
fullWidth
— full width of multiview setup
fullHeight
— full height of multiview setup
x
— horizontal offset of subcamera
y
— vertical offset of subcamera
width
— width of subcamera
height
— height of subcamera
Sets an offset in a larger viewing frustum. This is useful for multi-window or multi-monitor/multi-machine setups. For an example on how to use it see setViewOffset.
Implementation
void setViewOffset(double fullWidth, double fullHeight, double x, double y, double width, double height) {
view ??= CameraView();
view!.enabled = true;
view!.fullWidth = fullWidth;
view!.fullHeight = fullHeight;
view!.offsetX = x;
view!.offsetY = y;
view!.width = width;
view!.height = height;
updateProjectionMatrix();
}