I want to visualize a liquid-simulation. The simulation calculates periodically values for the speed of the liquid. I’m using these values to set some properties in the FX/Water shader (in this case the Wave speed map). This method works greatly for constant values. But if I change the values more often the visualization becomes bad. For example if the value decreases, the liquid seems to flow backwards (but the value remains positive). Is there someone with an idea, how to change the water-shader or water-script to achieve my goal? To gain a seamless transition from one wave speed to another wave speed.
If you’re using _Time in your formula for the scroll you’re effectively rewinding toward start time when you change your rate or whatever. You’ll need to track and manage a global variable that stands in as _Time.