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

**URL:** <https://forum.babylonjs.com/t/for-material-transparency-what-we-called-this-use-alpha-from-albedo-texture/38033>\
**Category:** Questions\
**Created:** [February 8, 2023, 11:53am UTC](https://forum.babylonjs.com/t/for-material-transparency-what-we-called-this-use-alpha-from-albedo-texture/38033 "2023-02-08T11:53:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neeraj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/neeraj/32/29497_2.png) [@Neeraj](https://forum.babylonjs.com/u/Neeraj)\
**Post date:** [February 8, 2023, 11:53am UTC](https://forum.babylonjs.com/t/for-material-transparency-what-we-called-this-use-alpha-from-albedo-texture/38033/1 "2023-02-08T11:53:04Z")

</div>

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???

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/c/b/cb9e0eecf65cf21c2006ab28b1ad1c4713eb7d58.png)

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [February 8, 2023, 12:06pm UTC](https://forum.babylonjs.com/t/for-material-transparency-what-we-called-this-use-alpha-from-albedo-texture/38033/2 "2023-02-08T12:06:22Z")

</div>

```auto
useAlphaFromAlbedoTexture = true

```

API - [PBRMaterial | Babylon.js Documentation](https://doc.babylonjs.com/typedoc/classes/BABYLON.PBRMaterial#useAlphaFromAlbedoTexture)

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [February 8, 2023, 12:22pm UTC](https://forum.babylonjs.com/t/for-material-transparency-what-we-called-this-use-alpha-from-albedo-texture/38033/3 "2023-02-08T12:22:25Z")

</div>

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 😁 😉)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [February 8, 2023, 9:55pm UTC](https://forum.babylonjs.com/t/for-material-transparency-what-we-called-this-use-alpha-from-albedo-texture/38033/4 "2023-02-08T21:55:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [February 9, 2023, 10:13am UTC](https://forum.babylonjs.com/t/for-material-transparency-what-we-called-this-use-alpha-from-albedo-texture/38033/5 "2023-02-09T10:13:26Z")

</div>

> [@sebavan](#):
>
> almost

yes, almost 😉…
