学习 UnityShader 过程中的一些 Demo 记录。
大致分为两部分:
- 《Unity Shader 入门精要》里的一些 Shader 实现。
- 学习 Shader 过程中的一些效果实现及拓展。
Unity Version:2021年3月11日f1
4JjFYt | 4JjFYt |
---|---|
处理后 | 原图 |
4JjFYt | 4JjFYt |
---|---|
在原图上叠加 | 边缘提取 |
4JjFYt | 4JjFYt |
---|---|
高斯模糊 | 原图 |
这里简单的对 mainTex 做了马赛克处理
烘焙前 - 烘焙后 q0hJyV.png q0hYLT.png
Bloom.png | Bloom2.png |
---|---|
原图 | Bloom |
sed.png | boxBlur.png |
---|---|
原图 | 均值模糊 |
GaussBlur.png | RadialBlur.png |
高斯模糊 | 径向模糊 |
triplanarMapX.png triplanarMapXZ.png
interiorMapping2D.gif vsYR9f.png vsYW38.png
左边是 先渲染正面后渲染描边、右边 先渲染描边后渲染正面
左边:开启 SSS、右边:关闭 SSS
simpleCharacter.png simpleCharacter.gif
左边:自定义 PBR,右边:Unity 的 PBR 50Eeot.png 50ElQg.gif
If you find this project helpful and would like to support me, you can donate through the following payment code. Thank you very much for your support!