OpacityTexture (PBR) - use black/white image for alpha

Hello,

I would like to use a black/white image as opacityTexture. The function .getAlphaFromRGB = true does not lead to the result. Any ideas? =)

we need a repro to help as always :slight_smile: (What you said should work by the way, at least with stdMaterial)

Sorry for the late reply. :slight_smile:
https://playground.babylonjs.com/#3KQPR0

Doesn’t seem to work with PBRMetallicRoughnessMaterial. Switched to PBRMaterial following the docs here

https://playground.babylonjs.com/#3KQPR0#1

1 Like

Thank you very much. I will switch to PBRMaterial. :slight_smile:

1 Like