可以使用 Look Dev 来模拟环境阴影。请注意,此模拟不完全准确,仅显示粗糙的阴影。
要模拟环境阴影,请单击 Look Dev 窗口顶部菜单中的 Environment Shadow 按钮(在下图中突出显示)。
使用 HDRI 视图可以控制阴影的方向。打开 Environment Shadow 后,浏览器中的选定 HDRI 上方会出现一个太阳图标。单击并拖动此图标可进行阴影定向,而按住 Shift+左键单击可控制阴影方向。
HDRI 中有关键光源时(如太阳或灯),__Environment Shadow__ 效果最佳。要创建光源,请将太阳图标拖放到 HDRI 上。默认情况下,光源建立在 HDRI 的最亮纹理像素上。对于更均匀分布的光源(如阴天),这种做法可能无法带来准确或预期的结果。
启用 Environment Shadow 后,Look Dev 对被关键光源照亮的预制件使用一个 HDRI(称为 Lit HDRI__),并对处于关键光源阴影下的预制件使用另一个 HDRI(称为 Shadow HDRI__)。Shadow HDRI 中的阴影基于光源图标的光线方向。默认情况下,__Shadow HDRI__ 与 Lit HDRI 相同,但光度有所降低。
要获得更准确的结果,请提供您自己的 Shadow HDRI。为获得最佳效果,请确保其与 Lit HDRI 相同,但不要使用关键光源(例如,从图像中移除太阳)。
要配对 Shadow HDRI 和 Lit HDRI__,请将 Shadow HDRI__ 拖放到 Lit HDRI 上。Shadow HDRI 将出现在 Lit HDRI 上,并带有月亮图标,如下图所示。
启用 Environment Shadow 后,__Lit HDRI__ 将切换到分配的 Shadow HDRI。
要删除 __Shadow HDRI__,请单击叉号。
注意__:可与库中的任何其他 HDRI 一样操作 Shadow HDRI__。
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.