我想将旋转变换原点设置为精灵的左,而不是居中,朝向相机时保持角度为水平。
// 2d
var texture = new THREE.Texture(canvas)
texture.needsUpdate = true
var material = new THREE.SpriteMaterial({
map: texture,
transparent: true,
useScreenCoordinates: false,
})
var actualSize = 10 / size.h
var w = size.w / size.h * actualSize
var h = actualSize
var mesh = new THREE.Sprite(material)
mesh.scale.set(w, h, 1)