I’ve been trying to get unlit objects working with Blender, I’ve done most of the objects but there is one that needs alpha masking and I can’t figure out how to make an unlit object that in Blender (see image).
I’ve tried to put the textures on in Threejs and make it unlit with an alpha mask as there are no tutorials on this. This is my code so far, what would I need to add? (Or if you know how to do this in Blender that would be even better, however I am aware that this isn’t the Blender forums lol)
Same as the previous unlit case - no need for code in this one as well Before exporting in Blender, set Blend Mode to Alpha Blend on the material - if the texture has an alpha channel, it’ll then render that specific parts of the texture transparent in Three.
Yup, seems to be working perfectly on gltf-viewer:
The exported model - test.glb (2.7 KB; just connected the texture to shader output + blending set to Alpha Blend, didn’t click absolutely anything else.)
Make sure you’re not modifying the material in some funky way in the code.
It’s not being modified in the code (you can see all the code related to the models in the original question) but blender does give me an error when I try to export it so I think it might be going wrong there, I updated blender to version 4.2.1 but now the Alpha Blend option isn’t in the materials panel.
Here’s the error, it’s complete nonsence as far as I can tell and because it’s not the latest version they won’t take a bug report of it.
Ah, until 4.0 it’s still there. And after 4.2.1 LTS it’s now under Settings > Render Method > Blended (tested and working exactly like Blend Mode before) :