var mirrorMatrix = new THREE.Matrix4(); mirrorMatrix.set( 3, 0, 0, 0, 0, 3, 0, 0, 0, 0, 3, 0, 20, 4, 2, 1 ); sphere.applyMatrix(mirrorMatrix); scene.add(sphere); console.log(sphere); camera.position.x = -30; camera.position.y = 40; camera.position.z = 30; camera.lookAt(scene.position); document.getElementById("WebGL-output").appendChild(renderer.domElement); renderer.render(scene, camera);發(fā)現(xiàn)scale沒有問題,但是坐標(biāo)20,4,2不起作用,仍然在原點位置,這是為什么呢?謝謝
three.js中的Matrix4對坐標(biāo)為何不起作用?
牛魔王的故事
2019-02-24 16:27:48