# NME Alpha Bug, or Depth Pass Issue?

**URL:** <https://forum.babylonjs.com/t/nme-alpha-bug-or-depth-pass-issue/6713>\
**Category:** Bugs\
**Created:** [October 31, 2019, 9:53pm UTC](https://forum.babylonjs.com/t/nme-alpha-bug-or-depth-pass-issue/6713 "2019-10-31T21:53:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [October 31, 2019, 9:53pm UTC](https://forum.babylonjs.com/t/nme-alpha-bug-or-depth-pass-issue/6713/1 "2019-10-31T21:53:20Z")

</div>

[https://nme.babylonjs.com/#YN6CFY#1](https://nme.babylonjs.com/#YN6CFY#1)

Notice how the alpha has a 1 being fed to it but there is still some transparency? Might be a depthPass issue, or some sort of culling error.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 31, 2019, 10:21pm UTC](https://forum.babylonjs.com/t/nme-alpha-bug-or-depth-pass-issue/6713/2 "2019-10-31T22:21:12Z")

</div>

Good catch!

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 31, 2019, 10:27pm UTC](https://forum.babylonjs.com/t/nme-alpha-bug-or-depth-pass-issue/6713/3 "2019-10-31T22:27:20Z")

</div>

Not a bug actually. The system has no idea what the value could be so it flags the material with needAlphaBlending = true

---

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [October 31, 2019, 10:38pm UTC](https://forum.babylonjs.com/t/nme-alpha-bug-or-depth-pass-issue/6713/4 "2019-10-31T22:38:51Z")

</div>

What do you mean the system has no idea what the value could be?

I think I get what you are saying, what is the work around/fix?

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [November 1, 2019, 2:42pm UTC](https://forum.babylonjs.com/t/nme-alpha-bug-or-depth-pass-issue/6713/5 "2019-11-01T14:42:39Z")

</div>

There is no. It is like a regular shadermaterial. If you set a value in alpha it will be transparent.

Don’t set a value in alpha to get it back to normal
