EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

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

 

 

Anzeigen:
© 2014 Microsoft