ClearDepth

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

Syntax

 * gl.clearDepth(depth)

Parameters

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

Examples

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