注意:Unity 5 引入了标准着色器来取代此着色器。
注意:Unity 5 引入了标准着色器来取代此着色器。
此着色器将模拟反射表面,如汽车、金属物体等。它需要一个环境立方体贴图来定义具体的反射。主纹理的 Alpha 通道定义了对象表面上的反射强度。任何场景光源都会在反射对象上增加亮度。
此着色器不以传统方式使用法线贴图。法线贴图不会影响对象上的任何光照,因为此着色器根本不使用光照。法线贴图只会扭曲反射贴图。
此着色器很特别,因为它根本不响应光照,所以您不必担心使用多个光照会降低性能的问题。此着色器只是在模型上显示反射立方体贴图。法线贴图会扭曲反射,因此可获得高度细节化的反射。因为不响应光照,所以其成本非常低。此着色器在一定程度上属于专用类别,但在此类情况下,能够以尽可能低的成本满足您的需求。
通常,此着色器的渲染成本非常低。有关更多详细信息,请查看着色器性能页面。
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.