unity 模型 材质 贴图 关系;着色器属性

模型包含

  • 材质(Material),包括
    • [核心]着色器(Shader)
    • 贴图和其他参数,贴图也算是一种参数
  • 其他,如网格渲染器(Mesh Renderer)、动画、坐标

一个材质可以看做为一个Shader的包装,一个预制体

着色器(Shader)属性:

  • Albedo:贴图/颜色
  • Metallic:物体表面对光线反射的能量,通常金属设置>50%,大部分在90%,非金属<20%
  • Smoonthness:该值越大,物体越光滑
  • normal map:法线贴图
  • Emission:自发光

If you are having trouble understanding how a shader works, consider this scenario: Imagine you have a piece of wood. The physicality of the wood is its mesh; the color, texture, and visible ele- ment are its texture. Now take that piece of wood and pour water on it. The wood still has the same mesh. It still is made of the same substance (wood). It looks different, though. It is slightly darker and shiny. The water in this example is the shader. The shader took something and made it look a little different without actually changing it.

posted @ 2017-09-21 21:36  三十六变  阅读(1838)  评论(0编辑  收藏  举报