EN
Este contenido no se encuentra disponible en su idioma, pero aquí tiene la versión en inglés.

stencilMask method

Controls the front and back writing of individual bits in the stencil planes.

IE11

 

Syntax

WebGLRenderingContext.stencilMask(mask);

Parameters

mask [in]

Type: number

Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, this mask composed entirely of 1's.

Return value

This method does not return a value.

Remarks

The stencil write mask can be used to control writing to the stencil buffer during both rendering and clear operations.

Only the n least significant bits of the mask parameter value are saved (where n is the size of the stencil buffer in bits).

The write mask value is set on both the front and back stencil buffers.

The write mask value can be set when the stencil test is disabled or a stencil buffer is unavailable.

The write mask defaults to an integer which has the n least significant bits set to all 1s on both the front and back-facing stencil buffers.

See also

WebGLRenderingContext

 

 

Mostrar:
© 2014 Microsoft