Skip to content

How to compress normal with size of 2 * unsigned char #383

Answered by zeux
jz0224 asked this question in Q&A
Discussion options

You must be logged in to vote

Right now you need to pad the data to 4 bytes, yeah. You can either do it with zeroes, or save a different attribute in the 2-byte gap like a tangent vector. This restriction is due to SIMD efficiency where arbitrary strides are very difficult to decode quickly.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jz0224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants