Search Unity

_MAIN_LIGHT_SHADOWS

Discussion in 'Universal Render Pipeline' started by DavidSWu, Sep 6, 2019.

  1. DavidSWu

    DavidSWu

    Joined:
    Jun 20, 2016
    Posts:
    183
    I noticed that all of my objects are called with the keyword _MAIN_LIGHT_SHADOWS set.
    In the past, only objects within our limited shadow range would use the shadow shader.
    Am I doing something wrong?

    I tried setting the shadowDistance to a very small number, and still everything is rendered using the shadows variant.

    This is a serious performance hit for us.