For material transparency what we called this => `use alpha from albedo texture`?

Hi @all,
I’m trying to change the material use alpha from albedo texture value.
can anyone tells me what the parameter or attribute is used to change this value???

useAlphaFromAlbedoTexture = true

API - PBRMaterial | Babylon.js Documentation

1 Like

I believe for proper rendering in all cases, you should also specify:

albedoTexture.hasAlpha = true;

It might be depending on the texture and use case but without this ,I eventually do not get the desired result. So, I always set both (lazy me :grin: :wink:)


@Neeraj if you look in the doc first you ll notice the names are almost all a 1 1 mapping with the inspector :slight_smile:

yes, almost :wink: