Ideas and suggestions needed for Improving p5.js WebGL mode in GSOC 2019

frustum(left, right, bottom, top, zNear, zFar)-

A frustum is simply a pyramid, with its tip cut off. In this kind of projection, the viewer’s eye is placed at the tip of the pyramid, the other six planes act as the clipping planes. So, anything inside the clipping planes visible, and anything outside is not visible.

It is similar to glFrustum, but it replaces the current projection matrix with the new frustum projection matrix, whereas in glFrustum, which is a function of OpenGL, it multiplies the new frustum projection matrix with the current projection matrix.

Arguments -

  1. left - The coordinate for the left-vertical clipping plane.

  2. right - The coordinate for the right-vertical clipping plane.

  3. bottom - The coordinate for the bottom-horizontal clipping plane.

  4. top - The coordinate for the bottom-horizontal clipping plane.

  5. zNear - The distances to the near-depth clipping plane. Must be positive.

  6. zFar- The distances to the far-depth clipping planes. Must be positive.