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

Store vertex color alpha into a second color attribute #26

Closed
my2iu opened this issue Apr 26, 2018 · 1 comment
Closed

Store vertex color alpha into a second color attribute #26

my2iu opened this issue Apr 26, 2018 · 1 comment

Comments

@my2iu
Copy link

my2iu commented Apr 26, 2018

It's possible that I don't fully understand Blender, but it's my understanding that gltf lets you store vertex colors in RGBA format while Blender only accepts vertex colors in RGB format. So the importer ends up discarding the extra alpha values of the vertex colors in a gltf file. Is it possible to stash those alpha values into a second vertex color attribute during import? So the importer would create a COLOR_0 and a ALPHA_0/COLOR_0_ALPHA or something like that.

@scurest scurest mentioned this issue Jul 15, 2018
@ksons ksons closed this as completed in #30 Jul 17, 2018
@ksons
Copy link
Owner

ksons commented Jul 18, 2018

Blender switches from RGB to RGBA vertex colors somewhere between 2.79.0 and 2.79.4. Code on master / next release will cover for that.

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

No branches or pull requests

2 participants