Experience-Monks/three-bmfont-text

Why vec2 position instead of vec3 at the cost of rewrite computeBounding functions ?

lateek35 opened this issue · 1 comments

I saw that THREE couldn't manage computeBounding's functions with vec2 position attributes.

However, you have made the choice to stay with vec2, which implies having to rewrite the computeBounding functions yourself.


Is it because vec2 add a significant performance boost over using vec3 ? Or something else ?

Thanks

Mainly because it requires less data storage and buffer transfer bandwidth. Using vec2, you are transferring 1 less float per vertex, i.e. 4 less floats per text glyph or 16 less bytes.