T
T
Taranas2020-07-26 15:45:20
Unity
Taranas, 2020-07-26 15:45:20

How to implement the "erasing" of the picture?

Hello everybody! I want to implement the effect of "erasing with a coin", i.e. on pressing, the area where you clicked becomes transparent and a part of the image is visible under it (link to gif for an example). The principle is clear, but I don’t know how to implement it in Unity. I thought to find something like drawing and erasing, but I did not find anything for myself.
Tell me, please, where to dig?
https://www.myaudience.co.uk/wp-content/uploads/20...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2020-07-26
@GavriKos

The simplest implementation is an editable texture. It is quite possible to access the texture pixels and change them. Google read/write texture unity.
If erasing should be clear in geometry and coordinates - well, you can stir up a shader

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question