[Unity Shader] Special Effects (4) Dissolve (UI)

Updated: September 11, 2021.
Github source code: [Click me to get the source code]

Dissolve

The dissolve effect is a delayed dissipation effect. When we want to make a picture disappear, it is very dull to hide it directly, so the dissolve effect looks more distinctive. Let's take a look at the final rendering:
insert image description here

Idea analysis

First of all, the so-called 溶解, that is, according to the passage of time (or one as a control switch), gradually change the transparency value in the texture 指定部分to 0 until the transparency value of every place in the entire texture becomes 0&#x

Guess you like

Origin blog.csdn.net/qq992817263/article/details/120237414