I need to rotate a sprite object but it seems this is not feasible, if not, is there a way to achieve the rotation effect, maybe through the UV coordinates of the spriteMaterial, or a custom shader? what would be the best way to go?
The rotation of a Sprite
is set by its material's rotation
parameter. For example, like so:
var material = new THREE.SpriteMaterial( {
color: 0xffffff,
map: texture,
rotation: Math.PI / 4
} );
var sprite = new THREE.Sprite( material );
three.js r.67
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With