Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

VFX Gradient HDR issue

Discussion in 'Graphics Experimental Previews' started by Soaryn, Jan 15, 2020.

  1. Soaryn

    Soaryn

    Joined:
    Apr 17, 2015
    Posts:
    328
    I noticed when attempting to use a "sample gradient" node that the colors I chose (assuming hdr) were only correct if I didn't use a random number [0,1] for time. If I did, then the interpolation between the colors exhibited rather odd behavior. Is this intended or expected behavior? :) As a note, the result with a set value is emphasized, but it is to demonstrate the oddity and not necessarily what I am going for :p

    Unity 2019.3.0f3, HRDP 7.1.6

    upload_2020-1-15_15-59-5.png

    upload_2020-1-15_15-58-29.png

    upload_2020-1-15_15-59-44.png
     
  2. scorpioservo

    scorpioservo

    Joined:
    Jul 24, 2020
    Posts:
    13
    For anyone coming here in 2022, I fixed this issue by first setting the color with a gradient (where HDR didn't work for me) and then added a multiply color node which was white with an HDR value. It's not a perfect work around because the HDR value can't be set over lifetime but it's better than nothing for now :)

    upload_2022-3-11_8-13-28.png
    upload_2022-3-11_8-14-18.png