Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

depth property

Gets or sets whether the drawing buffer has a depth buffer. Returns false if no depth buffer exists.

IE11

 

Syntax


<body>
  <canvas id="canvas"></canvas>
  ...
<script>
  // get context
  var gl = document.getElementById("canvas").getContext("experimental-webgl",{ depth: false});
  ...


Property values

Type: Boolean

ValueCondition
true

The drawing buffer has a depth buffer of at least 16 bits. Default.

false

No depth buffer is available on the drawing buffer.

 

See also

WebGLContextAttributes

 

 

Show:
© 2015 Microsoft