Search Unity

Question Only one directional light can have a cookie

Discussion in 'Universal Render Pipeline' started by PieterAlbers, Sep 27, 2022.

  1. PieterAlbers

    PieterAlbers

    Joined:
    Dec 2, 2014
    Posts:
    248
    I am setting up a scene where one directional light is used for lighting/shadows.
    A second directional light is used to project a cookie.

    Unforuntately this doesnt work. The second directional light only illuminates.
    I am aware that the second directional light doesnt cast shadows. Does this influence the use of lightcookies as well?

    In short should this - multiple directional lights with cookies - be supported?
     
  2. magnetic_scho

    magnetic_scho

    Joined:
    Feb 2, 2020
    Posts:
    97
    Did you find a solution for this problem?

    We also would like to have two directional lights, one with a cookie (at a constant angle) and the other one with a changing angle (aka sun) casting shadows.
     
  3. PieterAlbers

    PieterAlbers

    Joined:
    Dec 2, 2014
    Posts:
    248
    no - unforuntately never found a solution for this

    we thought about using a decal but havent tested it (yet)
     
  4. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    769
    Seems that light cookies with multiple directional lights support was added since 2023.2.0a6. (no backporting to 2023.1)
    URP_LightCookie_Multi_DirLights.jpg
     
  5. PieterAlbers

    PieterAlbers

    Joined:
    Dec 2, 2014
    Posts:
    248
    that is good to know - so we'll be able to use that at the end of 2024 or something ;)
     
  6. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    769
  7. magnetic_scho

    magnetic_scho

    Joined:
    Feb 2, 2020
    Posts:
    97
    Rather May/June 2024 when the 2023.3 LTS comes out.