# Can't make the shaders as per the tutorial

**URL:** <https://forums.unrealengine.com/t/cant-make-the-shaders-as-per-the-tutorial/584167>\
**Category:** Rendering\
**Tags:** unreal-engine, UE5-0, Rendering, Shaders, question\
**Created:** [June 17, 2022, 2:59pm UTC](https://forums.unrealengine.com/t/cant-make-the-shaders-as-per-the-tutorial/584167 "2022-06-17T14:59:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [June 17, 2022, 4:03pm UTC](https://forums.unrealengine.com/t/cant-make-the-shaders-as-per-the-tutorial/584167/4 "2022-06-17T16:03:09Z")

</div>

Your code seems to work for me;

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/b/29b01e625ea9d534a3ee2c8f8e48bb6dcb15f180.jpeg)

Are you using Unreal 5.0.2? Because this appears to be a bug that should be fixed in 5.0.2:

> **UE-147377** DistanceToNearestSurface Material Node breaks when connected to the Opacity Mask channel  
> [5.0.2 Hotfix Released](https://forums.unrealengine.com/t/5-0-2-hotfix-released/566149)

---

_[View the full topic](https://forums.unrealengine.com/t/cant-make-the-shaders-as-per-the-tutorial/584167)._
