# Image is pixelated

**URL:** https://forum.babylonjs.com/t/image-is-pixelated/17207
**Category:** Questions
**Created:** [January 5, 2021, 5:22pm UTC](https://forum.babylonjs.com/t/image-is-pixelated/17207 "2021-01-05T17:22:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![saifshk17](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/saifshk17/32/1418_2.png) [@saifshk17](https://forum.babylonjs.com/u/saifshk17)
#### Post date: [January 5, 2021, 5:22pm UTC](https://forum.babylonjs.com/t/image-is-pixelated/17207/1 "2021-01-05T17:22:53Z")

</div>

I am importing a texture and it looks pixelated and not at all sharp. Also if I reduce the visibility, the alpha is no longer cutoff. Why is this happening?

> **[Babylon.js Playground](https://playground.babylonjs.com/#FM5IEF)**

I am not able to find a solution for this. Stuck at this since some time now.

---

<div class="post-metadata">

### Author: ![pat\_lvl17](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@pat\_lvl17](https://forum.babylonjs.com/u/pat_lvl17)
#### Post date: [January 5, 2021, 6:04pm UTC](https://forum.babylonjs.com/t/image-is-pixelated/17207/2 "2021-01-05T18:04:27Z")

</div>

I believe you just need this:

```auto
    mat.useAlphaFromDiffuseTexture = true;

```

I’m not 100% sure on the technical details there, but that fixes it for me.

---

<div class="post-metadata">

### Author: ![saifshk17](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/saifshk17/32/1418_2.png) [@saifshk17](https://forum.babylonjs.com/u/saifshk17)
#### Post date: [January 5, 2021, 6:08pm UTC](https://forum.babylonjs.com/t/image-is-pixelated/17207/3 "2021-01-05T18:08:14Z")

</div>

> [@pat\_lvl17](#):
>
> `mat.useAlphaFromDiffuseTexture = true;`

Hey yes thanks alot! It works. Now the issue is that it looks very low resolution. No idea why though.

---

<div class="post-metadata">

### Author: ![pat\_lvl17](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@pat\_lvl17](https://forum.babylonjs.com/u/pat_lvl17)
#### Post date: [January 5, 2021, 6:22pm UTC](https://forum.babylonjs.com/t/image-is-pixelated/17207/4 "2021-01-05T18:22:40Z")

</div>

The image you’re using is only 41x41, maybe just use something a little more hi-res.
