How to change the opacity of an SDF


I’m using some SDF as an alpha mask and I’m trying to achieve some transparency, by using Mix in the SDF is not working, the alpha value works only with 0 or 1 doesn’t work with 0.5 for ex. Is there another way to reduce the alpha?

On the other hand, the idea is to use the transparent element below another one, to achieve something like the reference I attached, the SDF Smooth Union will work?

Thanks in advance!

You can only use the Mix patch to edit the opacity of the material, so it has to come after the Step patch, but it can be used in this way to edit the opacity of the material, and the color or image you mix in can also have a transparency.

Hope that helps.


I will give it a try, thank you very much!

1 Like