Our team is developing a game where one of the mechanics is cleaning puddles with a mop. Some of them are placed in the level beforehand, while others need to be generated in runtime. We’d like the cleaning system to be similar to the ones in Out Of Space (Out of Space - Game Trailer - YouTube) or Super Mario Odyssey (https://youtu.be/OBi8RFlDFt0?t=31)specifically the way a part of the puddles disappear when the mop or Mario’s hat touches them. Our main inspiration for generating the puddles is Splatoon.
We’ve been looking into render targets, decals, vertex painting, opacity and depth operations… But we’re kinda lost :’) Could it be a shader what these games are using? How would you guys implement such a feature?
If anyone can give us some hints on where to start, or point us in the right direction, we’d very much appreciate it.
Thanks in advance!!