标签:
var projector = new THREE.Projector(); var world_vector = new THREE.Vector3(0,0,1); var vector = projector.projectVector(world_vector, camera); var halfWidth = window.innerWidth / 2; var halfHeight = window.innerHeight / 2; var result = { x: Math.round(vector.x * halfWidth + halfWidth), y: Math.round(-vector.y * halfHeight + halfHeight) };
转载lvmy的个人博客, http://lvmy.iteye.com/blog/1849030
标签:
原文地址:http://www.cnblogs.com/iidf/p/4896944.html