注意:Unity 5 引入了标准着色器来取代此着色器。
此着色器是带有额外数据的常规漫射着色器的版本。此着色器允许您定义第二个“细节”纹理,当摄像机靠近时,该纹理将逐渐显示。此着色器可用于地形等之上。您可以使用一个基础低分辨率纹理,并将其拉伸到整个地形上。当摄像机靠近时,低分辨率纹理会变得模糊,但我们不希望出现这样的情况。为避免此效果,请创建一个将在地形上平铺的通用细节纹理。这样,当摄像机靠近时,便会显示额外的细节并避免模糊效果。
细节纹理放在基础纹理“之上”。细节纹理中较深的颜色会使主纹理变暗,而较浅的颜色会使其变亮。细节纹理通常呈灰色。
此着色器采用像素光照,大致相当于漫射着色器。由于采用额外的纹理,因此成本略高。
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.