antialias property

Get or set the antialias state on a WebGL rendering context.

IE11

 

Syntax

JavaScript
antialias = object.antialias

 

Property values

Type: Boolean

ValueCondition
true

Apply antialiasing to context. Default.

false

No antialiasing applied.

 

Remarks

If the value is set to true and Internet Explorer 11 is using a DirectX 10+ based GPU, the drawing buffer will perform antialiasing. On DirectX9 based GPUs, no antialiasing is performed.

Examples


var gl = canvas.getContext ( "webgl", {
           alpha             : false,
           antialias         : true,
           depth             : true,
           stencil           : false,
           premultipliedAlpha: false } ) ;


For more info, see Get started with WebGL.

See also

WebGLContextAttributes

 

 

Show: