In a material, how to make a black part of an image transparent?

Thanks.

Calculate the dot product between the RGB and the vector (300, 300, 300) and clamp to 0 … 1.
This will make black transparent, but all other colors (including very dark gray) opaque.
If you want a more feathered edge, reduce the values to (30,30,30).
If you want dark-gray to also be transparent, you can subtract some small amount from the value before you clamp to 0 … 1.

2 Likes

Ok thanks for making this. While I was messing around yesterday I also found I could just duplicate the texture and run its RGB output into opacity and that seemed to work.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.