Sfoglia il codice sorgente

Fixed webvr rollercoaster resize.

Mr.doob 8 anni fa
parent
commit
44c88177c0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/webvr_rollercoaster.html

+ 1 - 1
examples/webvr_rollercoaster.html

@@ -190,7 +190,7 @@
 				camera.aspect = window.innerWidth / window.innerHeight;
 				camera.updateProjectionMatrix();
 
-				renderer.setSize( window.innerWidth, window.innerHeight );
+				effect.setSize( window.innerWidth, window.innerHeight );
 
 			}, false );