Open iangilman opened 6 years ago
Oh I see... I have to modify the uniforms, like so:
mesh.material.uniforms.opacity.value = 0.5;
I'm still learning Three.js, so this wasn't obvious at first. Perhaps it's worth mentioning in https://github.com/Jam3/three-bmfont-text/blob/master/docs/sdf.md ?
If i want to update the color or opacity of my text, it looks like what I need to do is generate a fresh material each time, like so:
I'm wondering how efficient that is for, say, a fading animation. Would it be possible to somehow expose the necessary uniforms, assuming that would be more efficient?