FANDOM


DefinitionEdit

The depthMask() method specifies whether the depth buffer is enabled for writing. Edit

SyntaxEdit

gl.depthMask(flag)

ParametersEdit

  • flag: Boolean data type, the default value is true

ExamplesEdit

// Enables writing into the depth buffer
gl.depthMask(true);

See alsoEdit

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