Open lateek35 opened 4 years ago
I saw that THREE couldn't manage computeBounding's functions with vec2 position attributes.
THREE
computeBounding
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.
I saw that
THREE
couldn't managecomputeBounding
'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