Explorar o código

Merge pull request #17881 from takahirox/XRCompatibleMultiview

Add xrCompatible:true attribute in multiview example
Mr.doob %!s(int64=5) %!d(string=hai) anos
pai
achega
f3062cfe09
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/webvr_multiview.html

+ 1 - 1
examples/webvr_multiview.html

@@ -58,7 +58,7 @@
 				// as soon as that will get solved we will update the code so it will be
 				// transparent for the user and you could use this extension with or without multisampled
 				// contexts
-				var context = canvas.getContext( 'webgl2', { antialias: false } );
+				var context = canvas.getContext( 'webgl2', { antialias: false, xrCompatible: true } );
 
 				renderer = new THREE.WebGLRenderer( { canvas: canvas, context: context } );