EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

disable method

Turns off specific WebGL capabilities for this context.

IE11

 

Syntax

WebGLRenderingContext.disable(cap);

Parameters

cap [in]

Type: Number

One of the following values:

ValueMeaning
gl.BLEND

Don't blend computed fragment color values with color buffer values.

gl.DEPTH_TEST

Don't update the depth buffer, including when the depth buffer exists and the depth mask is non-zero.

gl.CULL_FACE

Don't cull polygons. see cullFace.

gl.POLYGON_OFFSET_FILL

Don't add an offset to the depth values of a polygon's fragments.

gl.SCISSOR_TEST

Don't discard fragments outside a scissor rectangle.

 

Return value

This method does not return a value.

Remarks

WebGL errorDescription
gl.INVALID_ENUMIf cap is not from the listed values.

 

See also

WebGLRenderingContext
blendFunc

 

 

표시:
© 2014 Microsoft