Download

Partial Texture Removal in RealTime?

Hey everyone,
I’m fairly new to UE4 and still not knowing how everything works I was hoping I could get some help.

How do I remove a part of a texture to reveal another texture underneath, all in real time?

Imagine there is a wall covered in dirt, and using a water hose (or throwing a bucket of water) you clean up the dirt to reveal the surface underneath, while taking into account the collision area where the water particles come into contact with the wall.

I basically want to know how to make a “stain removal” in UE4. I figured there must be a way to achieve this through decals or masks, but I’m not 100% sure how…

Any help will be much appreciated :slight_smile:

Probably the most efficient way would be using vertex painting, so you would have your material setup to use vertex colors as a mask, and then you would have to use Blueprints or code to change the vertex colors.

Thank you! Will give it a go and update later on my progress :slight_smile: