Version: 2018.4
HDRI menus
Scripting Runtime

Environment Shadow

You can use Look Dev to simulate environmental shadows. Note that this simulation is not completely accurate, and only shows harsh shadows.

To simulate environmental shadows, click the Environment Shadow button in the top menu of the Look Dev window (highlighted in the image below).

The top menu of the Look Dev window with the Environment Shadow button highlighted
The top menu of the Look Dev window with the Environment Shadow button highlighted

Use the HDRI view to control the direction of the shadows. When you toggle the Environment Shadow on, a sun icon appears over the selected HDRI in the browser. Click and drag this to orient the shadow, and hold Shift+left click to manipulate the shadow direction.

Manipulate the sun icon (here in the middle pane on the right-hand screen) to control shadow direction
Manipulate the sun icon (here in the middle pane on the right-hand screen) to control shadow direction

Environment Shadow works best when there is a key light source in the HDRI (like the Sun, or a lamp). To make that a light source, drag and drop the sun icon on top of it. By default, the light source is set up on the brightest texel of the HDRI. For more evenly distributed light sources (like an overcast sky), this might not give accurate or expected results.

When Environment Shadow is enabled, Look Dev uses one HDRI for the Prefab when it is lit by the key light source (this is called the Lit HDRI), and one for the Prefab when it is in the shadow of the key light source (this is called the Shadow HDRI). The shadow in the Shadow HDRI is based on the light direction from the light icon. By default, the Shadow HDRI is the same as the Lit HDRI, but with reduced luminosity.

To get more accurate results, provide your own Shadow HDRI. For best results, make this the same as the Lit HDRI but without the key light source (for example, by removing the Sun from the image).

To pair up a Shadow HDRI and a Lit HDRI, drag and drop the Shadow HDRI onto the Lit HDRI. The Shadow HDRI appears over the Lit HDRI with a moon icon, as shown in the image below.

Pairing up a Shadow HDRI and a Lit HDRI
Pairing up a Shadow HDRI and a Lit HDRI

When Environment Shadow is enabled, the Lit HDRI switches to the assigned Shadow HDRI.

To remove the Shadow HDRI, click on the cross.

Click on the cross to remove the Shadow HDRI
Click on the cross to remove the Shadow HDRI

Note: You can manipulate Shadow HDRI like any other HDRI in the library.

HDRI menus
Scripting Runtime
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961