Browse Source

Changed "antialias" to "alpha" in contextAttributes

Peter Varga 6 years ago
parent
commit
491ae413b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/manual/en/introduction/How-to-use-WebGL2.html

+ 1 - 1
docs/manual/en/introduction/How-to-use-WebGL2.html

@@ -55,7 +55,7 @@ if ( WEBGL.isWebGL2Available() === false ) {
 
 	<code>
 var canvas = document.createElement( 'canvas' );
-var context = canvas.getContext( 'webgl2', { antialias: false } );
+var context = canvas.getContext( 'webgl2', { alpha: false } );
 var renderer = new THREE.WebGLRenderer( { canvas: canvas, context: context } );
 	</code>