SpiderPig Posted July 18, 2023 Share Posted July 18, 2023 I forgot how to make the black parts of a texture be transparent. How to set this in a material? I tried "alphamask":true but not sure if that's even right. Quote Link to comment Share on other sites More sharing options...
Dreikblack Posted July 18, 2023 Share Posted July 18, 2023 Maybe this? https://www.ultraengine.com/learn/Material_SetTransparent?lang=cpp 1 Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted July 18, 2023 Author Share Posted July 18, 2023 Oh. Didn't even think about that. That'll teach me to post late at night. Thanks! Quote Link to comment Share on other sites More sharing options...
Josh Posted July 18, 2023 Share Posted July 18, 2023 You probably want Material::SetAlphaMask. Also, you probably want your transparent pixels to be greenish instead of black so the edges don't appear dark. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
SpiderPig Posted July 18, 2023 Author Share Posted July 18, 2023 Is that just 'alphamask' in the json material? I'll try the green idead too. Never considered that. Quote Link to comment Share on other sites More sharing options...
Josh Posted July 19, 2023 Share Posted July 19, 2023 Looks like it's not currently loaded from files, but I will add it. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted July 19, 2023 Share Posted July 19, 2023 You know the asset editor can save materials, right? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
SpiderPig Posted July 19, 2023 Author Share Posted July 19, 2023 I haven't actually explored it much till now It's actually really powerful, I like it how you can edit everything all in one window. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.