Vote count:
0
With the new version of threejs (r71) some properties of SpriteMaterial has been deleted, like:
useScreenCoordinates, alignment.
Now my code doesn't work and I don't know how to fix it without this two missing parameters.
var texture = new THREE.Texture(canvas)
texture.needsUpdate = true;
var spriteMaterial = new THREE.SpriteMaterial(
{ map: texture, useScreenCoordinates: false, alignment: spriteAlignment} );
var sprite = new THREE.Sprite( spriteMaterial );
asked 26 secs ago
Threejs r71 Sprite Material
Aucun commentaire:
Enregistrer un commentaire