Unity包括超过40种内置的shader。

标准着色器家族 Normal Shader Family

这些着色器都是Unity基本的着色器。适用于大多数的不透明物体,如果想要物体有透明、发光效果等,它们并不适用。

Vertex Lit 顶点光照着色器

Assets needed 资源需要:

  • One Base texture, no alpha channel required 
    一个基本纹理,无alpha通道

Diffuse 漫反射着色器

Assets needed 资源需要:

  • One Base texture, no alpha channel
    required 
    一个基本纹理,无alpha通道

Specular 高光着色器

Assets needed 资源需要:

  • One Base texture with alpha channel
    for Specular Map 
    一个基本纹理,带有alpha通道,用于高光贴图

Normal mapped 法线贴图着色器

Assets needed 资源需要:

  • One Base texture, no alpha channel
    required 
    一个基本纹理,无alpha通道
  • One Normal
    map 
    一个法线贴图

Normal mapped Specular 法线贴图高光着色器

Assets needed 资源需要:

  • One Base texture with alpha channel
    for Specular Map 
    一个基本纹理,带有alpha通道,用于高光贴图
  • One Normal
    map 
    一个法线贴图

Parallax 视差着色器

Assets needed 资源需要:

  • One Base texture, no alpha channel
    required 
    一个基本纹理,无alpha通道
  • One Normal
    map 
    一个法线贴图
  • One Height texture with Parallax
    Depth in the alpha channel 
    一个高度纹理,在alpha通道带有视差深度

Parallax Specular 视差高光着色器

Assets needed 资源需要:

  • One Base texture with alpha channel
    for Specular Map 
    一个基本纹理,带有alpha通道,用于高光贴图
  • One Normal
    map 
    一个法线贴图
  • One Height texture with Parallax
    Depth in the alpha channel 
    一个高度纹理,在alpha通道带有视差深度

Decal 贴花着色器

Assets needed 资源需要:

  • One Base texture, no alpha channel
    required 
    一个基本纹理,无alpha通道
  • One Decal texture with alpha channel
    for Decal transparency 
    一个贴花纹理,带有alpha通道,用于细节透明度

Diffuse Detail 漫反射细节着色器

Assets needed 资源需要:

  • One Base texture, no alpha channel
    required 
    一个基本纹理,无alpha通道
  • One Detail grayscale texture; with
    50% gray being neutral color 
    一个细节灰度纹理,带有50%灰中性色
 

透明着色器系列 Transparent Shader
Family

透明着色器用在全透明或者半透明对象上。使用基础纹理图像的Alpha通道。你可以决定对象上的一些区域比其他区域更透明或更不透明。这可以生成很好的玻璃、平视显示界面或科幻效果。

Transparent
Vertex-Lit
 顶点光照透明着色器

Assets needed: 资源所需:

  • One Base texture with alpha channel
    for Transparency Map 
    一个携带alpha通道用于控制透明的基础纹理

»
More details

Transparent
Diffuse
 漫反射透明着色器

Assets needed:资源所需:

  • One Base texture with alpha channel
    for Transparency Map 
    一个携带alpha通道用于控制透明的基础纹理

» More
details

Transparent
Specular
 高光透明着色器

Assets needed:资源所需:

  • One Base texture with alpha channel
    for combined Transparency Map/Specular Map 
    一个携带alpha通道用于结合透明及高光的基础纹理

Note: One limitation of this
shader is that the Base texture's alpha channel doubles as a
Specular Map for the Specular shaders in this family.

注:这个着色器的一个限定是基础纹理的alpha通道也会用做高光贴图

»
More details

Transparent
Normal mapped
 法线贴图透明着色器

Assets needed:资源所需:

  • One Base texture with alpha channel
    for Transparency Map 
    一个携带alpha通道的基础纹理用于透明贴图
  • One Normal map normal map, no alpha
    channel required 
    一个法线贴图,不需要alpha通道

»
More details

Transparent Normal mapped
Specular
 法线高光透明着色器

Assets needed:资源所需:

  • One Base texture with alpha channel
    for combined Transparency Map/Specular Map 
    一个携带alpha通道用于结合透明及高光的基础纹理
  • One Normal map normal map, no alpha
    channel required 
    一个法线贴图,不需要alpha通道
  • » More details

透明镂空着色器系列 Transparent Cutout
Shader Family

 

Note: One limitation of this
shader is that the Base texture's alpha channel doubles as a
Specular Map for the Specular shaders in this family.

注:这个着色器的一个限定是基础纹理的alpha通道也会用做高光贴图

» More details

Transparent Parallax 视差透明着色器

Assets needed:资源所需:

  • One Base texture with alpha channel
    for Transparency Map 
    一个携带alpha通道用于控制透明
  • One Normal map normal map with alpha
    channel for Parallax Depth 
    一个携带了alpha通道的法线贴图用于控制视差深度

» More details

Transparent Parallax Specular 视差高光透明着色器

Assets needed:资源所需:

  • One Base texture with alpha channel
    for combined Transparency Map/Specular Map 
    一个携带alpha通道用于结合透明及高光的基础纹理
  • One Normal map normal map with alpha
    channel for Parallax Depth 
    一个携带了alpha通道的法线贴图用于控制视差深度

Note: One limitation of this
shader is that the Base texture's alpha channel doubles as a
Specular Map for the Specular shaders in this family.

注:这个着色器的一个限定是基础纹理的alpha通道也会用做高光贴图。

» More
details

自发光着色器系列 Self-Illuminated
Shader Family

 

该自发光着色器将仅基于它们自己带的alpha通道发光。它们不需要任何灯光照射来发光。任何顶点灯光或像素灯光将简单增加更多光照到自发光上。

This is mostly used for light emitting objects. For example, parts
of the wall texture could be self-illuminated to simulate lights or
displays. It can also be useful to light power-up objects that
should always have consistent lighting throughout the game,
regardless of the lights shining on it.

这主要是用于发光物体。例如,部分纹理可以自发光来模拟灯光和显示器。它也可以用于光电对象,如在整个游戏中不管灯光是否照射到它,始终具有照明的物体。

Self-Illuminated
Vertex-Lit
 顶点光照自发光着色器

Assets needed:资源所需

  • One Base texture,
    no alpha channel required 
    一个材质纹理,没有alpha通道
  • One Illumination texture
    with alpha channel for Illumination Map 
    一个自发光纹理,带用于自发光贴图的alpha通道

»
More details

Self-Illuminated
Diffuse
 漫反射自发光着色器

Assets needed:资源所需

  • One Base texture,
    no alpha channel required 
    一个材质纹理,没有alpha通道
  • One Illumination texture
    with alpha channel for Illumination Map 
    一个自发光纹理,带用于自发光贴图的alpha通道

»
More details

Self-Illuminated
Specular
 高光自发光着色器

Assets needed:资源所需

  • One Base texture
    with alpha channel for Specular Map 
    一个基本纹理,带用于高光贴图的alpha通道
  • One Illumination texture
    with alpha channel for Illumination Map 
    一个自发光纹理,带用于自发光贴图的alpha通道

»
More details

Self-Illuminated Bumped 法线自发光着色器

Assets needed:资源所需

  • One Base texture,
    no alpha channel required 
    一个材质纹理,没有alpha通道
  • One Normal
    map
     normal map with alpha channel for
    Illumination 
    一个法线纹理纹理,带用于自发光贴图的alpha通道

» More details

Self-Illuminated Bumped
Specular
 法线高光自发光着色器

Assets needed:资源所需

  • One Base texture
    with alpha channel for Specular Map 
    一个基本纹理,带用于高光贴图的alpha通道
  • One Normal
    map
     normal map with alpha channel for
    Illumination Map 
    一个法线纹理纹理,带用于自发光贴图的alpha通道

» More details

Self-Illuminated Parallax 视差自发光着色器

Assets needed:资源所需

  • One Base texture,
    no alpha channel required 
    一个材质纹理,没有alpha通道
  • One Normal
    map
     normal map with alpha channel for
    Illumination Map & Parallax Depth
    combined 
    一个法线纹理纹理,带用于自发光贴图的alpha通道和视差深度(高度图)

Note: One consideration of this
shader is that
the Bumpmap texture's
alpha channel doubles as a Illumination and the Parallax Depth.

» More details

Self-Illuminated Parallax
Specular
 视差高光自发光着色器

Assets needed: 资源所需

  • One Base texture
    with alpha channel for Specular Map 
    一个材质纹理,没有alpha通道
  • One Normal
    map
     normal map with alpha channel for
    Illumination Map & Parallax Depth
    combined 
    一个法线纹理纹理,带用于自发光贴图的alpha通道和视差深度(高度图)

Note: One consideration of this
shader is that
the Bumpmap texture's
alpha channel doubles as a Illumination and the Parallax Depth.

注意:这个着色器的代价之一是凹凸纹理的alpha通道有两个,作为自发光和视差深度(高度图)。

» More
details

反射着色器系列 Reflective Shader
Family

反射着色器允许你使用一个Cubemap作为你网格的反射。你也在对象上面通过基本纹理的alpha通道定义或多或少的反射区域。高反射率对于光滑的、油、铬合金等有很好的效果;低反射率用于金属、液体表面、或视频显示器等。

Reflective Vertex-Lit 顶点光照反射着色器

Assets needed: 资源所需:

  • One Base texture
    with alpha channel for defining reflective
    areas 
    一个基本纹理,带用于定义反射区域的alpha通道
  • One Reflection Cubemap
    for Reflection Map 
    一个用于反射贴图的反射Cubemap

» More details

Reflective
Diffuse
 漫反射反射着色器

Assets needed: 资源所需:

  • One Base texture
    with alpha channel for defining reflective
    areas 
    一个基本纹理,带用于定义反射区域的alpha通道
  • One Reflection Cubemap
    for Reflection Map 
    一个用于反射贴图的反射Cubemap

»
More details

Reflective
Specular
 高光反射着色器

Assets needed: 资源所需:

  • One Base texture
    with alpha channel for defining reflective areas &
    Specular Map combined 
    一个基本纹理,带用于定义反射区域的alpha通道和高光贴图
  • One Reflection Cubemap
    for Reflection Map 
    一个用于反射贴图的反射Cubemap

Note: One consideration for this
shader is that
the Base texture's
alpha channel will double as both the reflective areas and the
Specular Map.

注意:这个着色器的代价之一是基本纹理的alpha通道将增加一倍,反射区和高光贴图。

»
More details

Reflective Normal mapped 法线贴图反射着色器

Assets needed: 资源所需:

  • One Base texture
    with alpha channel for defining reflective
    areas 
    一个基本纹理,带用于定义反射区域的alpha通道
  • One Reflection Cubemap
    for Reflection Map 
    一个用于反射贴图的反射Cubemap
  • One Normal
    map
     normal map, no alpha channel
    required 
    一个法线贴图,无需alpha通道

» More details

Reflective Normal Mapped
Specular
 法线高光反射着色器

Assets needed: 资源所需:

  • One Base texture
    with alpha channel for defining reflective areas &
    Specular Map combined 
    一个基本纹理,带用于定义反射区域的alpha通道和高光贴图
  • One Reflection Cubemap
    for Reflection Map 
    一个用于反射贴图的反射Cubemap
  • One Normal
    map
     normal map, no alpha channel
    required 
    一个法线贴图,无需alpha通道

Note: One consideration for this
shader is that
the Base texture's
alpha channel will double as both the reflective areas and the
Specular Map.

注意:这个着色器的代价之一是基本纹理的alpha通道将增加一倍,反射区和高光贴图。

» More details

Reflective Parallax 视差反射着色器

Assets needed: 资源所需:

  • One Base texture
    with alpha channel for defining reflective
    areas 
    一个基本纹理,带用于定义反射区域的alpha通道
  • One Reflection Cubemap
    for Reflection Map 
    一个用于反射贴图的反射Cubemap
  • One Normal
    map
     normal map, with alpha channel for
    Parallax Depth 
    一个法线贴图,带有用于视差深度的alpha通道

» More details

Reflective Parallax Specular 视差高光反射着色器

Assets needed: 资源所需:

  • One Base texture
    with alpha channel for defining reflective areas &
    Specular Map 
    一个基本纹理,带用于定义反射区域的alpha通道和高光贴图
  • One Reflection Cubemap
    for Reflection Map 
    一个用于反射贴图的反射Cubemap
  • One Normal
    map
     normal map, with alpha channel for
    Parallax Depth 
    一个法线贴图,带有用于视差深度的alpha通道

Note: One consideration for this
shader is that
the Base texture's
alpha channel will double as both the reflective areas and the
Specular Map.

注意:这个着色器的代价之一是基本纹理的alpha通道将增加一倍,反射区和高光贴图。

» More details

Reflective Normal mapped
Unlit
 无光法线贴图反射着色器

Assets needed: 资源所需:

  • One Base texture
    with alpha channel for defining reflective
    areas 
    一个基本纹理,带用于定义反射区域的alpha通道
  • One Reflection Cubemap
    for Reflection Map 
    一个用于反射贴图的反射Cubemap
  • One Normal
    map
     normal map, no alpha channel
    required 
    一个法线贴图,无需alpha通道

» More details

Reflective Normal mapped
Vertex-Lit
 法线顶点光照反射着色器

Assets needed: 资源所需:

  • One Base texture
    with alpha channel for defining reflective
    areas 
    一个基本纹理,带用于定义反射区域的alpha通道
  • One Reflection Cubemap
    for Reflection Map 
    一个用于反射贴图的反射Cubemap
  • One Normal
    map
     normal map, no alpha channel
    required 
    一个法线贴图,无需alpha通道

» More details

原文:http://game.ceeger.com/Components/Built-in_Shader_Guide.html

Unity 内置着色器(转)的更多相关文章

  1. Unity3D内置着色器

    Unity内部提供了一些可以直接使用的着色器,这些内置着色器包括以下6个方面: (1)Performance of Unity shaders 着色器的性能和两个方面有关:shader本身和rende ...

  2. yii框架中验证器声明一组内置验证器可以使用短名称引用

    1.内置验证器的短名称分别有: boolean: yii\validators\BooleanValidator captcha: yii\captcha\CaptchaValidator compa ...

  3. Unity内置的shader include files

    Unity内置的shader include files:这些文件都以.cninc结尾, HLSLSupport.cginc:自动包含,一些跨平台编译相关的宏和定义. UnityShaderVaria ...

  4. Flex 内置验证器—验证用户输入

    今晚对于Flex中的Validator类(所有验证器的父类)测试一下 ---->其中常用的验证类有StringValidator,NumberValidator,DateValidator 测试 ...

  5. 【Unity Shaders】使用CgInclude让你的Shader模块化——Unity内置的CgInclude文件

    本系列主要參考<Unity Shaders and Effects Cookbook>一书(感谢原书作者),同一时候会加上一点个人理解或拓展. 这里是本书全部的插图. 这里是本书所需的代码 ...

  6. python的内置下载器

    python有个内置下载器,有时候在内部提供文件下载很好用. 进入提供下载的目录 # ls abc.aaa chpw.py finance.py lsdir.py ping.py u2d-partia ...

  7. Struts2内置校验器——完整实例代码

    一.校验器的配置风格 1.字段校验器: <field name="被校验的字段"> <field-validator type="校验器名"& ...

  8. struts2内置拦截器和自定义拦截器详解(附源码)

    一.Struts2内置拦截器 Struts2中内置类许多的拦截器,它们提供了许多Struts2的核心功能和可选的高级特 性.这些内置的拦截器在struts-default.xml中配置.只有配置了拦截 ...

  9. Unity苹果(iOS)内购接入(Unity内置IAP)

    https://www.jianshu.com/p/4045ebf81a1c Unity苹果(iOS)内购接入(Unity内置IAP) Kakarottog                       ...

随机推荐

  1. ubuntu下如何快速加密可移动存储设备

    ubuntu下可以快速加密U盘和其他移动存储设备.访问的时候会要你输入密码,这样就比较安全了. ubuntu的磁盘工具使用的是LUKS加密,虽然这个加密方法不跟其他系统兼容,但可以在其他试用GNOME ...

  2. MyBatis学习总结_19_Mybatis传多个参数(三种解决方案)

    据我目前接触到的传多个参数的方案有三种. 第一种方案  DAO层的函数方法  Public User selectUser(String name,String area); 对应的Mapper.xm ...

  3. CentOS 7快速搭建Nodejs开发环境

    Node.js是一个事件驱动I/O服务端JavaScript环境,基于Google的V8引擎,V8引擎执行Javascript的速度非常快,性能非常好.学习Nodejs首先需要会安装环境.这里我介绍如 ...

  4. C# GUID的使用

    GUID(全局统一标识符)是指在一台机器上生成的数字,它保证对在同一时空中的所有机器都是唯一的.通常平台会提供生成GUID的API.生成算法很有意思,用到了以太网卡地址.纳秒级时间.芯片ID码和许多可 ...

  5. leetcode:Insertion Sort List

    Sort a linked list using insertion sort. 分析:此题要求在链表上实现插入排序. 思路:插入排序是一种O(n^2)复杂度的算法,基本想法就是每次循环找到一个元素在 ...

  6. 函数lock_rec_get_first_on_page

    lock结构体 详见 /*********************************************************************//** Gets the first ...

  7. POJ 3693 (后缀数组) Maximum repetition substring

    找重复次数最多的字串,如果有多解,要求字典序最小. 我也是跟着罗穗骞菊苣的论文才刷这道题的. 首先还是枚举一个循环节的长度L,如果它出现两次的话,一定会包含s[0], s[L], s[2L]这些相邻两 ...

  8. HDU 1847 (博弈 找规律) Good Luck in CET-4 Everybody!

    为了提高题解质量还是简单证明一下:3的倍数是必败状态. 如果n % 3 = 1,那么拿走1个石子:如果n % 3 = 2,那么拿走两个石子,都将转移到3的倍数的状态.所以每个必胜状态都有一个后继是必败 ...

  9. Book 最短路算法

    用HDU2544整理一下最近学的最短路算法 1.Dijkstra算法 原理:集合S表示已经找到最短路径的点,d[]表示当前各点到源点的距离 初始时,集合里面只有源点,当每个点u进入集合S时,用d[u] ...

  10. [原创] - C#编程大幅提高OUTLOOK的邮件搜索能力!

    使用OUTLOOK, 你有没有遇到过上图的问题? 多达18419封邮件! 太多了, 每次想找一个邮件都非常耗时, 想办法解决这个问题成了一件非常紧迫的事情. 利用MS Search当然可以, 但是它太 ...