Just a problem,
how can i apply the alpha for PBRCustomMaterial.
I searched some alpla related api , but not effect.
here is my PG : Babylon.js Playground
line 100 : finalColor.a = 0.0;
Just a problem,
how can i apply the alpha for PBRCustomMaterial.
I searched some alpla related api , but not effect.
here is my PG : Babylon.js Playground
line 100 : finalColor.a = 0.0;
Hello @ecojust , how are you doing?
Here is a working Playground.
PBRCustomMaterial-Alpha | Babylon.js Playground
You must set a value for material.alphaMode
and material.alpha
. You can check what the effects will be based on the alphaMode in the following documentation: Introduction To Blend Modes | Babylon.js Documentation
oh, thank you very much.
In fact , i have tried that before , but my code is different with you
material.alphaMode = 2;
material.alpha = 1;
or
material.alphaMode = 2;
material.alpha = 0.5;