-
Notifications
You must be signed in to change notification settings - Fork 317
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
Alpha is ignored, unless it comes from the same source as BaseColor #1417
Comments
Ok. Looks like I missed that in the Blender docs. Any idea why it works then? Also, I get different results when swapping those two 'Shader' inputs. If the Transparent BSDF is plugged into the upper Shader input, I get transparency. If the Transparent BSDF is plugged into the lower Shader input, I get zero transparency. |
I figured it out. I was misunderstanding how that Mix Shader was working, as well as how that Transparent BSDF works. The behavior I was seeing makes sense. By swapping those Shader inputs, I was effectively changing which one was being affected by the Factor's alpha texture. That, combined with a complex alpha texture, was making it seem more complicated that it actually was. I still don't quite understand why my first example works though. |
Ugh... the plot thickens. I should have actually tested your example, @scurest. If you export as you have demonstrated above, that object does have alpha, but the object is just white instead of having the color of the texture that's being input in the lower Shader node. I'm officially very confused again. Maybe because we're sending a COLOR output into a SHADER input? |
Something's definitely not quite right, or at least not what the Blender glTF documentation would have me believe. I replaced the image texture with alpha with a different one I had lying around. I cannot fathom why the COLOR of that texture with Alpha is being exported at all. Its color output is NOT plugged into anything, only its ALPHA. The original description of this issue still stands then. It's assuming the color comes from the same source as the alpha, no matter what is mixed into the Mix Shader node. |
Yes, the comment julienduroure posted obviously still applies.
|
Same exact issue I've run into recently. @julienduroure Any thoughts on how difficult this would be to remedy? Or if a fix is even possible given the code comment above? |
Describe the bug
This is almost identical to #1219. Except this still occurs when using a Background node (for exporting an Unlit shader).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Alpha should get exported regardless of the BaseColor network.
Screenshots
This works as expected. (Alpha is exported)
This does not work. (Alpha appears to be ignored)
.blend file/ .gltf
Attached
Version
Additional context
AlphaBackgroundIssue.zip
The text was updated successfully, but these errors were encountered: