Explorar o código

Changed "antialias" to "alpha" in contextAttributes

Peter Varga %!s(int64=6) %!d(string=hai) anos
pai
achega
491ae413b8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>