Browse Source

Fixed Bug: Resolution can't be changed.

gam0022 9 năm trước cách đây
mục cha
commit
4a98684e36
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      examples/webgl_raymarching_reflect.html

+ 1 - 2
examples/webgl_raymarching_reflect.html

@@ -301,9 +301,8 @@
 				window.addEventListener( 'resize', onWindowResize );
 				document.body.appendChild( canvas );
 
-				controls = new THREE.FlyControls( camera );
+				controls = new THREE.FlyControls( camera, canvas );
 
-				controls.domElement = canvas;
 				controls.autoForward = true;
 				controls.dragToLook = false;
 				controls.rollSpeed = Math.PI / 12;