Преглед на файлове

Add xrCompatible:true attribute to canvas.getContext() in multiview example

Takahiro преди 5 години
родител
ревизия
83e1ea5c38
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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
 				// 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
 				// transparent for the user and you could use this extension with or without multisampled
 				// contexts
 				// 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 } );
 				renderer = new THREE.WebGLRenderer( { canvas: canvas, context: context } );