Matrix:Perspective(alpha, nearr, farr, aspect)

Version added: before 9.5

Prepend a perspective transform onto the current matrix

ArgumentTypeDescriptionDefaultVer
alpharealThe field of view angle (in radians)< 9.5
nearrrealDistance from the virtual eye to the near clipping plane< 9.5
farrrealDistance from the virtual eye to the far clipping plane< 9.5
aspectrealAspect ratio of the final viewing plane< 9.5

Return type : none

Prepend a perspective transform onto the current matrix.