I am not sure if its a bug or feature, but I have following problem:
When i load a GLB into the sandbox, ad textures to the meshs material everything looks fine at the end. Then, when i export it again as GLB, one texture is replaced with a “debugMaterial”. After a longer research i found out, that it is most of the time the first material of the material-list that is replaced.
Does anyone had the same problem or know something about that?
On the first screenshot you see the GLB before exporting and the second right after.
Allright, maybe the solution is to not use PBR Materials… after this was changed by a co-worker everything works. But maybe there is someone who can explane that to me. Because for me, it was just try-and-error.
This will happen if you click the wrench icon next to the texture.
I believe this is a debug feature which creates and swaps in an unlit debug material for testing purposes. Clicking the button again will go back to the original material. Source is here: Babylon.js/textureLinkLineComponent.tsx at master · BabylonJS/Babylon.js (github.com)
Are you clicking this button @cloud?
As far as I can tell, this is the only way to create a material called “debugMaterial”.