ソースを参照

Handle damping when switching cameras

WestLangley 6 年 前
コミット
bfad2b4ffd
1 ファイル変更3 行追加2 行削除
  1. 3 2
      examples/webgl_materials_channels.html

+ 3 - 2
examples/webgl_materials_channels.html

@@ -274,15 +274,16 @@
 
 					case 'perspective':
 						camera = cameraPerspective;
-						controlsPerspective.update();
 						break;
 					case 'ortho':
 						camera = cameraOrtho;
-						controlsOrtho.update();
 						break;
 
 				}
 
+				controlsPerspective.update();
+				controlsOrtho.update(); // must update both controls for damping to complete
+
 				renderer.render( scene, camera );
 
 			}