[Unity Shader] Special Effects (6) Pixel pixelation (UI)

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

Pixel pixelation

The pixelation effect is the result of the so-called downsampling, which is very common on some low-end devices, such as the Xiaobawang red and white machine in the 1990s, which is a compromise in performance due to insufficient hardware performance. Today , we can also reduce a high-pixel image to low-pixel by downsampling:
insert image description here

Idea analysis

The essence of low pixelation is to reduce the resolution of the picture. For example, if the pixel size of a picture is 100*100, if we reduce it to 20*20, then the content of the remaining 80*80pixels will be lost. When the picture is still 100*100displayed in the same size as When region is drawn &

Guess you like

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