sampleCoverage method

Sets multi-sample coverage parameters for antialiasing.

IE11

 

Syntax

WebGLRenderingContext.sampleCoverage(value, invert);

Parameters

value [in]

Type: number

A floating point number between 0 and 1 that determines sample coverage. Used to temporarily create a mask to determine which samples are used for the final fragment color.

invert [in]

Type: boolean

True if the coverage mask bits are inverted and a bitwise and is used, false otherwise.

Return value

This method does not return a value.

Remarks

If no multi-sample buffers exist or multi-sampling is disabled, then final RGB colors are computed with a single sample.

See also

WebGLRenderingContext
antialias

 

 

Show: