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

**URL:** <https://discourse.processing.org/t/ideas-and-suggestions-needed-for-improving-p5-js-webgl-mode-in-gsoc-2019/8865>\
**Category:** Summer of Code\
**Created:** [March 2, 2019, 8:34pm UTC](https://discourse.processing.org/t/ideas-and-suggestions-needed-for-improving-p5-js-webgl-mode-in-gsoc-2019/8865 "2019-03-02T20:34:51Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![sanketsingh24](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@sanketsingh24](https://discourse.processing.org/u/sanketsingh24)\
**Post date:** [March 19, 2019, 10:46pm UTC](https://discourse.processing.org/t/ideas-and-suggestions-needed-for-improving-p5-js-webgl-mode-in-gsoc-2019/8865/14 "2019-03-19T22:46:45Z")

</div>

`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`](https://docs.microsoft.com/en-us/windows/desktop/OpenGL/glfrustum#remarks), 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.

---

_[View the full topic](https://discourse.processing.org/t/ideas-and-suggestions-needed-for-improving-p5-js-webgl-mode-in-gsoc-2019/8865)._
