It works !!!
material.diffuseTexture = texture;
material.diffuseTexture.hasAlpha = true; // SOLUTION
material.alpha = 0.7;
do not use material.opacityTexture
It works !!!
material.diffuseTexture = texture;
material.diffuseTexture.hasAlpha = true; // SOLUTION
material.alpha = 0.7;
do not use material.opacityTexture
@adam sorry man )
Sorry? For what?
Often distracted you )
No problem.
Iām not sure how that fixes the issue, but glad you found a fix for your situation.
Following @jeromeās link about meshes transparency you can find that there is alpha-tested and alpha-blended types of meshes.
Using diffuseTexture.hasAlpha = true
instead of opacityTexture changes mesh from alpha blended to alpha tested.