Skip to content

How can I use .pngs as textures and respect the alpha channel? #521

Answered by asny
Saetch asked this question in Q&A
Discussion options

You must be logged in to vote

Hi. It's not necessarily easy, transparency in a rasterizer is always a lot of trouble unfortunately 🙂 however, I think I have an idea what is wrong. You are maybe missing setting the blend mode of the material. You can either use the ColorMaterial::new_transparent method or look at the code in that method and copy the parts you are missing. Let me know if it works 🙏

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Saetch
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants