Abnormal display in highLightLayers when texture has alpha

hello everyone, Transparent texture on a box | Babylon.js Playground (babylonjs.com)


PBRMaterial have the question too.

I found the answer to the question.I need to change the material transparencyMode.

mat.transparencyMode = BABYLON.PBRMaterial.PBRMATERIAL_ALPHABLEND;
or
mat.transparencyMode = BABYLON.StandardMaterial.MATERIAL_ALPHABLEND;

1 Like