Reply To: How to Create Water in Reverse?

Home Forums AR Sandbox Forum How to Create Water in Reverse? Reply To: How to Create Water in Reverse?

#102914
Oliver Kreylos
Keymaster

Changing the color is easy — it’s assigned in Shaders/SurfaceAddWaterColor.fs, and there are several threads about editing that shader for different effects here on the forum.

To change the flow direction, you’d have to turn the gravity vector upside down. That should be easy, as g is defined as a member of the WaterTable2 class and only initialized in the constructors, and you could replace g=9.81f; with g=-9.81f;, but I can’t guarantee that there are no implicit assumptions about g being +9.81 elsewhere in the water simulation code.

Comments are closed.