Closed Maxxxel closed 2 years ago
I don't see why this is a bug.
There's a few primary properties that are implicit to the material, like DoubleSide and AlphaBlend, and then there's the channels.
Channels represent a combination of an [optional] texture and an argument that usually multiplies the values of the texture if it exists, while implicit properties like AlphaBlend are at a lower level and usually require branching in the shader's implementation.
I agree that in an ideal world, a material structure could treat every property as a "channel" of sorts, but this is not the case, because MaterialBuilder is just a helper class that mimics how glTF materials work at a lower level.
In fact, glTF materials are absolutely terrible to handle because like 75% of what you see as "channels" are actually handled via glTF extensions.
Makes sense 🙂
Bug in Title.
Workaround: