Invert B/W texture for opacityTexture

I have a black and white texture. I need for opacityTexture (StandardMaterial) the inverted version from the image. How can i achieve this? =)

You can’t do it with the standard material (except by updating the texture data after loading), but it can easily by done with a node material.

1 Like

Oh cool. Thank you. Do you have a sample? :slight_smile:

You can use: https://nme.babylonjs.com/?#AT7YY5#13

I have simply took the material referenced here and added two “OneMinus” blocks in the “Opacity” frame.