Explorar o código

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

Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
88972682b3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ) );