使用标准着色器创建材质时,可选择以下两个着色器之一:__Standard__ 或 Standard (Specular setup)。两者接受的数据不同,如下所述:
Standard:着色器显示“Metallic”值,表示材质是否为金属性。在使用金属性材质的情况下,反照率颜色 (Albedo) 控制镜面反射的颜色,且大多数光线以镜面反射形式反射。非金属性材质具有与入射光颜色相同的镜面反射,并且在正面观察表面时几乎不会反射。
Standard (Specular setup):选择此着色器意味着使用传统方法。使用镜面反射颜色来控制材质中镜面反射的颜色和强度。此设置可使镜面反射具有与漫射不同的颜色。
使用上述任一种方法都能很好地表示最常见的材质类型,因此在大多数情况下,具体选择哪种方法是基于美术工作流程的个人喜好问题。以下示例显示了标准 (Standard) 和标准镜面反射 (Standard Specular) 工作流程中创建的橡胶塑料材质:
第一个图像代表金属性工作流程,此处我们将 Metallic 值设置为零(非金属性)。第二个设置几乎相同,但是将镜面反射设置为接近黑色(因此不会得到金属性镜像反射)。
在基于物理着色的世界中,可以使用来自已知真实材质的参考。如需了解这些参考的一些示例,请查看材质图表。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.