Wired in setting mesh's material

Hi everybody:
These day I am working on opacity texture. I found a question about it…


Using mesh.material to setting prop & raw material to setting prop can occur different visual effect as the PG show.

Hey @Zcating.
Standard material doesn’t have ‘getAlphaFromRGB’ property.
You can set this only on texture.
https://www.babylonjs-playground.com/#2L1MHP#3 - line 34

Sorry for my eyes.

Addition, help me again. Why does PBR present the different effect from Standard?

No issue, show it in the playground. In your pg you are using 2 standard materials which look the same. https://www.babylonjs-playground.com/#2L1MHP#4