stemkoski/stemkoski.github.com

The sprites examples doesn't work with three.js rev. 64 and upper

Opened this issue · 0 comments

If i use the sprites examples (particulary the "Labeled Geometry" example) I am receiving the following error.

var radarMaterial = new THREE.SpriteMaterial( { map: radarTexture2, useScreenCoordinates: true, alignment: THREE.SpriteAlignment.topLeft } );

Uncaught TypeError: Cannot read property 'topLeft' of undefined.

If i doesn't use the "alignment: THREE.SpriteAlignment.topLeft" the sprites are not centered with respect to the center of the Cartesian axes. (I read that SpriteMaterial.alignment and SpriteMaterial.useScreenCoordinates have been removed from Threejs.) Could You update these examples to make them compatible with the version 64?

Many thanks in advance,
Fabrizio.