瀏覽代碼

Changed "antialias" to "alpha" in contextAttributes

Peter Varga 6 年之前
父節點
當前提交
491ae413b8
共有 1 個文件被更改,包括 1 次插入1 次删除
  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>