# hint(DISABLE\_DEPTH\_TEST) in P5

**URL:** <https://discourse.processing.org/t/hint-disable-depth-test-in-p5/5595>\
**Category:** p5.js\
**Created:** [November 16, 2018, 11:28am UTC](https://discourse.processing.org/t/hint-disable-depth-test-in-p5/5595 "2018-11-16T11:28:20Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [November 16, 2018, 12:36pm UTC](https://discourse.processing.org/t/hint-disable-depth-test-in-p5/5595/7 "2018-11-16T12:36:24Z")

</div>

> [@hamoid](#):
>
> `gl = document.getElementById('defaultCanvas0').getContext('webgl');`

Shortest way to reach the sketch’s canvas rendering context is via undocumented variable _drawingContext_:  
`gl = drawingContext;`

The canvas itself is under undocumented variable _canvas_.

And its wrapper is under both undocumented variables _\_renderer_ & _\_curElement_.

---

_[View the full topic](https://discourse.processing.org/t/hint-disable-depth-test-in-p5/5595)._
