Documentation

Create Ortho Rect - Open Dev Kit Documentation

Open Dev Kit Documentation :: General :: Matrix 4x 4 :: Create Ortho Rect

Root.Matrix4x4.CreateOrthoRect(
  Area Rectangle,
  Z Near Float,
  Z Far Float
) Matrix 4x 4
Creates an orthogonal projection matrix from a rectangle

Parameters

Area Rectangle
Bounding rectangle of the view volume
Z Near Float
Distance to the near clipping plane from the camera. Avoid setting too low (0) as that can cause glitches
Z Far Float
Distance to the far clipping plane from the camera. Avoid setting too high as objects may not render properly due to depth buffer limitations

Return Value

Matrix 4x 4

If you think anything is missing, please feel free to: submit documentation feedback on this page