AnyTrail allows characters to plot tracks on the RT beneath their feet and calculate fluids and ripples
Currently supports fluids/tracks/ripples/patterns (can be expanded)
All functions are done in Compute shader
Drawing results can be used to render tracks/effects
Details
Currently, four types of tracks are supported, but the system extends its support to drawing any programmed image (such as branches, fractals, noise, etc.) through reasonable data structures.
2D fluids : Using Euler method to solve 2D NS equations, texture pixels as fluid elements, can be used to draw interactive liquid/gas effects
Surface ripples : approximates the wave equation and can be used to simulate player interaction with shallow water surfaces
Trajectory : Continuous circle drawing, can be used to draw continuous trajectory (used in sand, snow, etc.)
Pattern : Draws a pattern of any shape, controlling random number and position to create a particle effect. Used to draw footprints of any shape to influence ground coloring
How to use
Add Any Trail Canvas component to the object followed by the canvas, speed up the Fluid/Trail/Pattern/Wave Writer component in the brush object, and you're ready to paint