瀏覽代碼

Examples: Clean up

Mugen87 6 年之前
父節點
當前提交
b8e2744026
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. 2 5
      examples/misc_controls_trackball_orthographic.html

+ 2 - 5
examples/misc_controls_trackball_orthographic.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="en">
 	<head>
-		<title>three.js webgl - trackball controls</title>
+		<title>three.js webgl - orthographic trackball controls</title>
 		<meta charset="utf-8">
 		<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
 		<link type="text/css" rel="stylesheet" href="main.css">
@@ -18,7 +18,7 @@
 
 	<body>
 		<div id="info">
-			<a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> - orthographic trackball controls<br />
+			<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> - orthographic trackball controls<br />
 			MOVE mouse &amp; press LEFT: rotate, MIDDLE: zoom, RIGHT: pan
 		</div>
 
@@ -38,7 +38,6 @@
 			function init() {
 
 				camera = new THREE.OrthographicCamera( window.innerWidth / - 2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / - 2, 1, 2000 );
-				// camera = new THREE.OrthographicCamera( 0.5 * frustumSize * aspect / - 2, 0.5 * frustumSize * aspect / 2, frustumSize / 2, frustumSize / - 2, 1, 2000 );
 				camera.position.z = 1000;
 
 				// world
@@ -62,7 +61,6 @@
 
 				}
 
-
 				// lights
 
 				var light = new THREE.DirectionalLight( 0xffffff );
@@ -88,7 +86,6 @@
 
 				controls.rotateSpeed = 1.0;
 				controls.zoomSpeed = 1.2;
-				controls.panSpeed = 0.8;
 
 				controls.noZoom = false;
 				controls.noPan = false;