Table of Contents

Matrix:perspectiveProjection

Available since version: Gideros 2016.06

Description:

replace this matrix by a perspective projection matrix suitable for this 3D engine (simplified form)

Syntax:

Matrix:perspectiveProjection(fov, aspect, near, far)

Parameters:

  • fov: (number) field of view angle
  • aspect: (number) aspect ratio (width/height)
  • near: (number) near plane distance
  • far: (number) far plane distance