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

Added 3mf examples to list.

上级 350188a7
......@@ -250,6 +250,7 @@
"webgl_lines_dashed",
"webgl_lines_sphere",
"webgl_lines_splines",
"webgl_loader_3mf",
"webgl_loader_amf",
"webgl_loader_assimp2json",
"webgl_loader_awd",
......
......@@ -66,7 +66,7 @@
scene.add( new THREE.AmbientLight( 0x999999 ) );
var pointLight = new THREE.PointLight( 0xffffff, 0.6 );
pointLight.position.set( 80, 90, -150 );
pointLight.position.set( 80, 90, 150 );
scene.add( pointLight );
camera = new THREE.PerspectiveCamera( 35, window.innerWidth / window.innerHeight, 1, 500 );
......@@ -86,9 +86,9 @@
document.body.appendChild( renderer.domElement );
var loader = new THREE.ThreeMFLoader();
loader.load( './models/3mf/cube_gears.3mf', function ( object3mf ) {
loader.load( './models/3mf/cube_gears.3mf', function ( object ) {
scene.add( object3mf );
scene.add( object );
render();
} );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册