setShift

open fun setShift(xShift: Double, yShift: Double)

Sets an additional matrix that shifts (translates) the projection matrix.

The shift parameters are specified in NDC coordinates, that is, if the translation must be specified in pixels, the xshift and yshift parameters be scaled by 1.0 / viewport.width and 1.0 / viewport.height respectively.

Parameters

xShift

horizontal shift in NDC coordinates applied after the projection

yShift

vertical shift in NDC coordinates applied after the projection

See also

Camera.setProjection
Camera.setLensProjection
Camera.setCustomProjection