Shader是用来控制可编程图形渲染管线的程序。
Unity3d提供了超过80个内建shader着色器。
本文将对各个着色器的用途和特性作简单概述。
- Standard -Unity5.x中新加入的基于物理的“标准着色器”
- Standard(Specular setup) 标准着色器的高光版
- FX
- GUI
- Mobile Unity针对移动端进行优化的Shader
- Bumped Diffuse 法线贴图漫反射着色器
- Bumped Specular 法线贴图高光着色器
- Bumped Specular(1 Directional Light)
- Diffuse 漫反射着色器
- Particles
- Skybox
- Unlit(Supports Lightmap) 仅使用纹理颜色,不受光照影响(支持光照贴图)
- VertexLit 顶点光照着色器
- VertexLit(Only Directional Lights)
- Nature
- Particles
- Skybox
- Sprites
- UI
- Unlit 仅使用纹理颜色,不受光照影响
- Legacy Shaders 老版本Shader,Unity已不推荐使用