Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Help using Spotlight Cookies in HDRP Project (Unity 2019)

Discussion in 'High Definition Render Pipeline' started by supersoup, Jul 16, 2019.

  1. supersoup

    supersoup

    Joined:
    Jun 20, 2019
    Posts:
    2
    I was trying to use "cookies" for spotlights in Unity, but I can't get the same results when working in an HDRP project as opposed to a typical "3D" project. I don't quite know the difference between the two, but I know that HDRP has a "pyramid" spotlight which I need for my project and so I am trying to get things working in that environment.

    It was simple enough following online tutorials to do so in a regular "3D" project...
    • Create a simple 512x512 bitmap in Microsoft paint
    • Import image as a new asset into Unity (2019) as a "Cookie"
    • Applying the cookie to a spotlight
    For instance, to create a dot pattern, I got this in a regular project:
    Test1.png

    ...but the same steps didn't work for me in an HDRP project. It is just black as if no light is getting through the spotlight.
    Test2.png

    When I changed the asset type to be "Default" instead of "Cookie", it seems to work ish but the result is more blurry...
    Test3.png


    Supposedly HDRP gives you more control over Cookies but I don't quite know what those are. Any experienced users out there have any idea what is going on or how I can fix this?

    Thanks
     
  2. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    932
    systemicgames likes this.
  3. supersoup

    supersoup

    Joined:
    Jun 20, 2019
    Posts:
    2
    Thanks! Definitely helped.