码迷,mamicode.com
首页 > 其他好文 > 详细

Mesh Filter & Mesh Render

时间:2014-06-02 13:19:13      阅读:326      评论:0      收藏:0      [点我收藏+]

标签:c   style   class   blog   a   http   

Mesh Filter

  The Mesh Filter takes a mesh from your assets and passes it to the Mesh Renderer for rendering on the screen.

  Mesh Filter决定使用哪一个Mesh。Mesh Filter只有一个参数,就是指定Mesh。

  bubuko.com,布布扣

  When importing mesh assets, Unity automatically creates a Skinned Mesh Renderer if the mesh is skinned, or a Mesh Filter along with a Mesh Renderer, if it is not.

Mesh Render

  The Mesh Renderer takes the geometry from the Mesh Filter and renders it at the position defined by the object‘s Transform component.

  Mesh Render 负责渲染 Mesh Filter 指定的 Mesh,在 Transform 的位置渲染这个Mesh。

  bubuko.com,布布扣

  Mesh Render参数主要指定是否产生和接受阴影,以及使用了Meterial。

  Meshes imported from 3D packages can use multiple Materials.  Each submesh will use one material from the materials list. If there are more materials assigned to the Mesh Renderer than there are submeshes in the mesh, the first submesh will be rendered with each of the remaining materials, one on top of the next. At a cost of performance, this will let you set up multi-pass rendering on that submesh. Fully opaque materials, however, will simply overwrite the previous layers, costing performance for no advantage.

  如果有多个Meterial,并且Meterial数量多过Submesh的数量,则第一个Mesh会使用自己对应的meterial以及剩下的meterial。排最后的meterial会被前面的meterial覆盖或混合。

参考:file://localhost/Applications/Unity/Unity.app/Contents/Documentation/Documentation/Components/class-MeshRenderer.html

 

 

Mesh Filter & Mesh Render,布布扣,bubuko.com

Mesh Filter & Mesh Render

标签:c   style   class   blog   a   http   

原文地址:http://www.cnblogs.com/tekkaman/p/3764082.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!