__投影器__允许您将__材质__投影到与其视锥体相交的所有对象上。材质必须使用特殊类型的着色器才能使投影效果有效;有关如何使用提供的 Projector/Light 和 Projector/Multiply 着色器的示例,请参阅 Unity 标准资源中的投影器预制件。
属性: | 功能: |
---|---|
Near Clip Plane | 近裁剪面前面的对象不会接收到投射。 |
Far Clip Plane | 超出此距离的对象不会受到影响。 |
Field Of View | 以度为单位的视野。仅在投影器不采用正交视图 (Ortho Graphic) 时使用。 |
Aspect Ratio | 投影器的宽高比 (Aspect Ratio)。此属性可用于调整投影器的高度和宽度。 |
Is Ortho Graphic | 如果启用此属性,则投影器将采用正交视图 (Ortho Graphic) 而不是透视图。 |
Ortho Graphic Size | 投影的正交视图大小。仅在启用 Is Ortho Graphic 复选框时才使用此属性。 |
Material | 将投射到对象上的材质。 |
Ignore Layers | 位于 Ignore Layers 之一上的对象将不会受到影响。默认情况下,Ignore Layers 为 None,因此与投影器视锥体相交的所有几何体都将受到影响。 |
使用投影器可以:
如果要创建简单的阴影效果,只需将 StandardAssets > Blob-Shadow > Blob shadow projector __预制件__拖到场景中即可。您可以修改材质以使用不同的模糊阴影纹理。
注意:创建投影器时,请务必将投影器纹理材质的包裹模式设置为 clamp。否则,会看到投影器的纹理重复,进而无法达到角色上所需的阴影效果。
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.