VERGELua API

ViewSetup

The camera/view description used by render callbacks.

x:numberprop

View origin X on screen.

unscaledX:numberprop

Unscaled view origin X.

y:numberprop

View origin Y on screen.

unscaledY:numberprop

Unscaled view origin Y.

width:numberprop

View width in pixels.

unscaledWidth:numberprop

Unscaled view width.

height:numberprop

View height in pixels.

unscaledHeight:numberprop

Unscaled view height.

ortho:booleanprop

Whether the view uses an orthographic projection.

orthoLeft:numberprop

Ortho projection left bound.

orthoTop:numberprop

Ortho projection top bound.

orthoRight:numberprop

Ortho projection right bound.

orthoBottom:numberprop

Ortho projection bottom bound.

fov:numberprop

Field of view in degrees.

fovViewmodel:numberprop

Viewmodel field of view in degrees.

origin:Vector3prop

Camera position.

angles:Vector3prop

Camera angles.

zNear:numberprop

Near clip plane distance.

zFar:numberprop

Far clip plane distance.

aspectRatio:numberprop

View width divided by height.