FANDOM


DefinitionEdit

The clearDepth() method specifies the depth value used by clear() to clear the depth buffer.

SyntaxEdit

gl.clearDepth(depth)

ParametersEdit

  • depth: floating-point number between 0.0 and 1.0, the default value is 1.0

ExamplesEdit

// Everything will be cleared when the depth buffer is cleared
gl.clearDepth(1.0);

See alsoEdit

Community content is available under CC-BY-SA unless otherwise noted.