Shader Dynamic branch not working?

Thanks, I read through Dynamic flow control in materials. The take away from that thread seems to be pretty much what Arkiras said… Which kinda sucks. Custom nodes are horrible to work with unless your using them for short snippets of code.

One possible way of working around this, would be to make an HLSL code generator. The input would be material functions, and the output would be a hlsl custom node. However this wouldnt be easy to do, and you may end up with somewhat inefficient code.