# Shader Dynamic branch not working?

**URL:** <https://forums.unrealengine.com/t/shader-dynamic-branch-not-working/1909078>\
**Category:** Rendering\
**Tags:** branch, unreal-engine, shader\
**Created:** [June 19, 2024, 2:27pm UTC](https://forums.unrealengine.com/t/shader-dynamic-branch-not-working/1909078 "2024-06-19T14:27:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Frenetic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frenetic/32/1142542_2.png) [@Frenetic](https://forums.unrealengine.com/u/Frenetic)\
**Post date:** [June 19, 2024, 6:23pm UTC](https://forums.unrealengine.com/t/shader-dynamic-branch-not-working/1909078/4 "2024-06-19T18:23:20Z")

</div>

Just my raised hand, but I too would like to understand this better.

I know a few years ago dynamic-branching was a very popular topic but I am still unaware of the in’s and out’s. ref: [Dynamic flow control in materials](https://forums.unrealengine.com/t/dynamic-flow-control-in-materials/68393) (Ty @DeathreyCG for this and your ocean-thingie)

I don’t even know how to get it set up, if it requires a custom-node, or if there are best-practices…

Anyone that wants to chime in on this is welcome (please?). 😃

edit: Only guy I found on youtube, 6ys old… ref: [https://www.youtube.com/@MPRX87](https://www.youtube.com/@MPRX87)

He seems to be doing what you are doing OP, just-embedding an IF statement in the custom-node…

---

_[View the full topic](https://forums.unrealengine.com/t/shader-dynamic-branch-not-working/1909078)._
