Modulate MeshPhysicalMaterial transparency with texture

I want to modulate the transparency of MeshPhysicalMaterial with a texture. Not the opacity, which gives different results. Is it possible?

It seems the .alphaMap and the alpha channel of .map modulate the opacity.

BTW, MeshPhysicalMaterial.transparency is not in the docs…

Unfortunately, the related PR did not update the docs, see https://github.com/mrdoob/three.js/pull/17114

Right now it seems not. But I’m unsure about the reasons. Would be good to clarify this in the documentation.

Thanks. I’ve followed the opacity way for the moment. It looks good:

2 Likes