# Not reading alpha from texture with black or white colors only

**URL:** <https://forums.unrealengine.com/t/not-reading-alpha-from-texture-with-black-or-white-colors-only/461240>\
**Category:** UI\
**Tags:** alpha, unreal-engine, masked, UI, Widget, question\
**Created:** [February 2, 2020, 6:21pm UTC](https://forums.unrealengine.com/t/not-reading-alpha-from-texture-with-black-or-white-colors-only/461240 "2020-02-02T18:21:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fjordhoj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fjordhoj](https://forums.unrealengine.com/u/Fjordhoj)\
**Post date:** [February 2, 2020, 6:21pm UTC](https://forums.unrealengine.com/t/not-reading-alpha-from-texture-with-black-or-white-colors-only/461240/1 "2020-02-02T18:21:17Z")

</div>

Hi

I am trying to create a UI Material. It should read the alpha of the image to opacity, and then a Vec3 color as the color of the visible area.

I have some masked textures that only are of black color in the unmasked area.  
When using this, nothing is masked, and the Vec3 col is shown as a square.  
However if i recolor the texture to be not fully black, it reads the alpha as it should.  
The same happens with a masked purewhite texture.

If i insert these textures into a widget image, same thins happen. A full colores swuare is shown

![296232-help.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/f/a2fd0aeea44a0c68edc76d61f0f6edb98c7e42c8.png)

Left button is of a masked very dark grey texture.  
Right button is of a masked black texture.

This is rather annoying as i cant import images from sites like flaticon, but have to repaint all of them.

Is this an import issue, or what might be causing this?

---

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [February 2, 2020, 6:27pm UTC](https://forums.unrealengine.com/t/not-reading-alpha-from-texture-with-black-or-white-colors-only/461240/2 "2020-02-02T18:27:23Z")

</div>

Show settings of your texture  
Or attach the texture if you can

---

<div class="post-metadata">

**Author:** ![Fjordhoj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fjordhoj](https://forums.unrealengine.com/u/Fjordhoj)\
**Post date:** [February 2, 2020, 6:29pm UTC](https://forums.unrealengine.com/t/not-reading-alpha-from-texture-with-black-or-white-colors-only/461240/3 "2020-02-02T18:29:54Z")

</div>

![296234-udklip.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/e/e9e4c27932a58baed62d1547ea23b5716fdc2c07.png)

Tried to compare it with an altered version. The formats are different as the working versions are DXT5. So it somehow imports wrong, as i doeans’t change anything.

---

<div class="post-metadata">

**Author:** ![Fjordhoj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fjordhoj](https://forums.unrealengine.com/u/Fjordhoj)\
**Post date:** [February 2, 2020, 6:34pm UTC](https://forums.unrealengine.com/t/not-reading-alpha-from-texture-with-black-or-white-colors-only/461240/4 "2020-02-02T18:34:40Z")

</div>

And it says “Alpha Channel: False” even though it has in other programs.

---

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [February 2, 2020, 6:34pm UTC](https://forums.unrealengine.com/t/not-reading-alpha-from-texture-with-black-or-white-colors-only/461240/5 "2020-02-02T18:34:58Z")

</div>

Untick sRGB and report back.

---

<div class="post-metadata">

**Author:** ![Fjordhoj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fjordhoj](https://forums.unrealengine.com/u/Fjordhoj)\
**Post date:** [February 2, 2020, 6:40pm UTC](https://forums.unrealengine.com/t/not-reading-alpha-from-texture-with-black-or-white-colors-only/461240/6 "2020-02-02T18:40:42Z")

</div>

Tried, doesn’t help.

---

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [February 2, 2020, 7:24pm UTC](https://forums.unrealengine.com/t/not-reading-alpha-from-texture-with-black-or-white-colors-only/461240/7 "2020-02-02T19:24:05Z")

</div>

These textures have no info in the RGB channels and UE doesn’t like that. Even windows doesn’t like that. The icon on the left is of a converted texture. On the right is the original. I would suggest to just use bulk convert tool.

![296222-alpha.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/e/f1eb4a60096db6c55ceba62f21a0d95679a2c889.png)

---

<div class="post-metadata">

**Author:** ![Fjordhoj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fjordhoj](https://forums.unrealengine.com/u/Fjordhoj)\
**Post date:** [February 2, 2020, 9:37pm UTC](https://forums.unrealengine.com/t/not-reading-alpha-from-texture-with-black-or-white-colors-only/461240/8 "2020-02-02T21:37:25Z")

</div>

I’ll do someting to change the colors in general. Thank you a lot 🙂
