提交 05319568 编写于 作者: M Mr.doob

Fixed VRMLLoader example. See #3728.

上级 a94ddae8
......@@ -19,8 +19,6 @@ THREE.VRMLLoader.prototype = {
scope.dispatchEvent( { type: 'load', content: object } );
if ( callback ) callback( geometry );
}, false );
request.addEventListener( 'progress', function ( event ) {
......
......@@ -57,7 +57,7 @@
function init() {
camera = new THREE.PerspectiveCamera( 60, window.innerWidth / window.innerHeight, 0.01, 1e10 );
camera.position.z = 0.2;
camera.position.z = 6;
controls = new THREE.TrackballControls( camera );
......@@ -88,11 +88,7 @@
var loader = new THREE.VRMLLoader();
loader.addEventListener( 'load', function ( event ) {
var geometry = event.content;
var mesh = new THREE.Mesh( geometry, material );
mesh.position.setY( - 0.09 );
scene.add( mesh );
scene = event.content;
} );
loader.load( "models/vrml/simple.wrl" );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册