while applying a texture (that was embeded inside of a glb file) to a SpriteMaterial I’ve noticed the Y was flipped. Tried doing:
texture.flipY = false; //also true...
texture.needsUpdate=true
with no luck… the only solution was to do:
texture.repeat.y = -1;
Any idea why the first solution didn’t worked? why the “flipY” was totally ignored?
I also had trouble with a SpriteMaterial being randomly upside down. It was weird because at one time it was working but suddenly had orientation problems when I made other non-related changes.
For the record, after a lot of AI-discussion I fixed it with the following:
iconMap.flipY = false;
iconMap.wrapS = ThreeConstants.RepeatWrapping;
iconMap.wrapT = ThreeConstants.RepeatWrapping;
iconMap.center.set(0.5, 0.5);
iconMap.repeat.set(1, -1);
iconMap.offset.set(0, 1);
iconMap.needsUpdate = true;