Optimizing the shader: when to replace If statements by a Lerp?

Hi Ryan,

Thanks for the answer.

I still have some trouble to understand this notion of Static Vs Dynamic.
For example, as shown on the picture below, my input is a float used as a boolean: if it is strictly inferior to 1.0 I do one thing, otherwise (so if it is true) I do another.
Should I use a static boolean instead?