浏览代码

Fixed long standing bug in webgl terrain example's camera position.

Mr.doob 11 年之前
父节点
当前提交
88972682b3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/webgl_geometry_terrain.html

+ 1 - 1
examples/webgl_geometry_terrain.html

@@ -79,7 +79,7 @@
 
 				data = generateHeight( worldWidth, worldDepth );
 
-				camera.position.y = data[ worldHalfWidth + worldHalfDepth * worldWidth ] + 500;
+				camera.position.y = data[ worldHalfWidth + worldHalfDepth * worldWidth ] * 10 + 500;
 
 				var geometry = new THREE.PlaneGeometry( 7500, 7500, worldWidth - 1, worldDepth - 1 );
 				geometry.applyMatrix( new THREE.Matrix4().makeRotationX( - Math.PI / 2 ) );