未验证 提交 42c09065 编写于 作者: M Michael Herzog 提交者: GitHub

Update webgl_loader_mdd.html

上级 f1bdf4f3
......@@ -34,16 +34,6 @@
//
var hemiLight = new THREE.HemisphereLight( 0xffffff, 0x444444 );
hemiLight.position.set( 0, 20, 0 );
scene.add( hemiLight );
var dirLight = new THREE.DirectionalLight( 0xffffff );
dirLight.position.set( - 3, 10, - 10 );
scene.add( dirLight );
//
var loader = new MDDLoader();
loader.load( 'models/mdd/cube.mdd', function ( result ) {
......@@ -54,7 +44,7 @@
var geometry = new THREE.BoxBufferGeometry();
geometry.morphAttributes.position = morphTargets; // apply morph targets
var material = new THREE.MeshPhongMaterial( { morphTargets: true } );
var material = new THREE.MeshNormalMaterial( { morphTargets: true } );
var mesh = new THREE.Mesh( geometry, material );
scene.add( mesh );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册