Paint on ground with mesh instead of mouse

So I want to do something like this Playground, but instead of painting with the mouse, I have a mesh which I control.

I can move the mesh on the x and z axes on the ground, and I want it to leave a train in its path. The camera is locked on the mesh and moves along with it on the x and z axes as well.

I would appreciate some help with the matter :slight_smile:

Would that fit ? Trail effect with Babylon.js. In my last demo, I exploited a… | by Babylon.js | Medium

This is pretty cool. But I was more so looking for a splatter effect directly on the ground where the mesh goes over it, rather than in the air.

Should it not do this if you do it right above ground ?