Pixel Shader

像素着色器

Basic 基础Shader 着色器

Pixel Shader

像素着色器

The Pixel Shader creates a pixel-like distribution of a texture. Top right: With Pixel Shader applied; bottom right: Without the Pixel Shader applied. Pixel Shader 创建一个像素一样的纹理分布。右上角: 使用 Pixel Shader; 右下角: 不使用 Pixel Shader

Let’s say you want to project a texture made up of small areas of the same color onto a surface (e.g., a TFT display). You would want the individual pixels to also look good close up. This is where the Pixel Shader works its magic - it creates a fitting "pixel coarseness" without having to make changes to the original texture.

假设您想要将一个由相同颜色的小区域组成的纹理投影到一个表面上(例如,TFT 显示器)。你会希望每个像素也看起来很好的特写镜头。这就是像素着色器施展魔法的地方——它创建了一个合适的“像素粗糙度” ,而不需要对原始纹理进行修改。

Tip: 提示:
The Pixel Shader only works with 2D Shaders and textures. When using a Noise Shader, for example, the 像素着色器只适用于二维着色器和纹理Space 太空 option should be set to 选项应设置为UV (2D) 紫外线(2D)