Selaa lähdekoodia

Fixed webvr rollercoaster resize.

Mr.doob 8 vuotta sitten
vanhempi
commit
44c88177c0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 );