Search Unity

Question Lighting Mode: Shadowmask - can't get it working

Discussion in 'General Graphics' started by pocketmoon, Jan 4, 2021.

  1. pocketmoon

    pocketmoon

    Joined:
    Jun 24, 2014
    Posts:
    1
    Hi,

    I'm trying to get basic mixed lights working using built-in pipeline following the unity docs here

    https://docs.unity3d.com/2020.2/Documentation/Manual/LightMode-Mixed-Shadowmask.html

    Scene has a static directional light with the mode set to Mixed, a static sphere, a static plane and in between them a dynamic cube see screenshot below).

    Quality is set to Distance Shadowmask and Lighting has Baked Global Illumination set and Lighting Mode Mixed.

    The static objects work ok. A shadow gets cast by the sphere onto the plane. This remains even when moving beyond the "shadow distance" (which I've set low to make in clear when shadows are clipped).

    But the dynamic cube isn't showing the baked shadow from the static sphere when the view moves beyond the shadow distance.

    The docs say :

    Dynamic GameObjects lit by Mixed Lights receive:
    • Real-time shadows from static GameObjects, using the shadow map, up to the Shadow Distance.
    • Baked shadows from static GameObjects using Light Probes, beyond the Shadow Distance.

    As you can see from the screenshot below, as the real-time shadow fades out (due to shadow distance) the baked shadow is not present as expected.

    mixed.JPG

    Using Unity 2020.2

    TIA

    RJ.