# Why the shader alpha value is not applied

**URL:** <https://forum.defold.com/t/why-the-shader-alpha-value-is-not-applied/80070>\
**Category:** Questions\
**Created:** [March 15, 2025, 10:22am UTC](https://forum.defold.com/t/why-the-shader-alpha-value-is-not-applied/80070 "2025-03-15T10:22:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![selimanac](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/selimanac/32/6397_2.png) [@selimanac](https://forum.defold.com/u/selimanac)\
**Post date:** [March 15, 2025, 11:27am UTC](https://forum.defold.com/t/why-the-shader-alpha-value-is-not-applied/80070/2 "2025-03-15T11:27:51Z")

</div>

> [@How to make a shader’s alpha/transparency work?](https://forum.defold.com/t/how-to-make-a-shader-s-alpha-transparency-work/79834/2):
>
> For transparency, render it last. And don’t write in depth buffer. render.set\_depth\_mask(false) --don't write to depth render.enable\_state(graphics.STATE\_DEPTH\_TEST) render.draw(self.predicates.model\_transparent, self.draw\_opts)

---

_[View the full topic](https://forum.defold.com/t/why-the-shader-alpha-value-is-not-applied/80070)._
