Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align vertex attributes to multiples of 4 bytes #426

Open
lilleyse opened this issue Sep 12, 2018 · 0 comments
Open

Align vertex attributes to multiples of 4 bytes #426

lilleyse opened this issue Sep 12, 2018 · 0 comments

Comments

@lilleyse
Copy link
Contributor

For performance and compatibility reasons, each element of a vertex attribute must be aligned to 4-byte boundaries inside bufferView (i.e., accessor.byteOffset and bufferView.byteStride must be multiples of 4).

The 1.0 to 2.0 upgrade step is currently ignoring this note in the spec. The fix will likely involve adding padding to the buffer. More discussion in #421.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant