- Home /
how to make texture transparent
I'm trying to apply a texture of leaf which is in RGB format. the area outside of the actual leaf shape in the texture is black(0, 0, 0). Does anyone how to make those black area be renderd transparent? Thanks in advance.
Answer by CHPedersen · Aug 06, 2013 at 08:30 AM
This is typically done using an alpha cutout shader. You need a texture of a format that has an alpha channel, i.e. png.
PS: Why is this question community wiki?
sorry it's been a while. Now I'm pretty sure that I have a png image with alpha channel. But the unity can't display the texture when I'm using "Cutout" shader. If I use "Transparent/Diffuse", the textured will be rendered much darker than its original color.
Why doesn't the cutout shader work for you? This very scenario is exactly what it is developed for.
If the texture becomes too dark with transparent/diffuse it might be because the leaf's area isn't totally alpha = 1, so it blends with a darker background.
Answer by awesomeaustin316 · Aug 12, 2013 at 08:55 PM
What I usually do is use photoshop to make the background of my texture transparent then use the cutout or diffuse transparent shader. It has worked for me.
Answer by catafest · May 18, 2016 at 02:10 PM
just use shader with double sided and cutout (Alpha Cutout)
Your answer
Follow this Question
Related Questions
transparent shader objects disappear on certain camera angles 6 Answers
How do I blend or overlay a texture over the main texture? 1 Answer
Make transparency ignore meshes inside? 1 Answer
Is there a shader that will give me a range of transparencies for an unlit texture? 2 Answers
Adding transparency to a 2 texture blending shader...noobie. 1 Answer