VEX Dictionary / perspective
perspective
Builds a perspective projection matrix that maps camera space onto clipping space, given zoom and aspect ratios.
group: transformtransform
Available in every context
Usage
matrix perspective(float zoom, float image_aspect, float pixel_aspect, float clip_near, float clip_far)
matrix perspective(float zoom, float image_aspect, float pixel_aspect, float clip_near, float clip_far, vector4 window)
Examples
No worked examples yet.
Signatures (from vcc -X)
matrix perspective(float, float, float, float, float)all contextsmatrix perspective(float, float, float, float, float, vector4)all contexts