Search Unity

Resolved Is there a way to define an HDR Color property?

Discussion in 'Shader Graph' started by lcompton, Dec 23, 2020.

  1. lcompton

    lcompton

    Joined:
    Mar 31, 2018
    Posts:
    102
    I have an Unlit HDRP Shader Graph that I'd like to send an HDR Color property to. It looks like you simply can't do that. There's an HDR Color attached to the Emission input by default, but it looks like it isn't possible to set up an HDR Color as an input property. Is that the case? If I'm mistaken, how do you define an HDR Color property?
     
  2. lcompton

    lcompton

    Joined:
    Mar 31, 2018
    Posts:
    102
    I figured it out. For those having the same problem, here's what you do.
    • create your color property
    • select it
    • open "Node Settings" in the Graph Inspector
    • change the Mode to HDR
     
  3. constantinpopp

    constantinpopp

    Joined:
    Jul 21, 2017
    Posts:
    5
    thanks for posting this. this helped me. :D
     
    lcompton likes this.
  4. rbisso

    rbisso

    Joined:
    Jul 13, 2011
    Posts:
    29
    Thank you very much! It helped a lot
     
    lcompton likes this.
  5. unity_LSllk3BwtNpfYA

    unity_LSllk3BwtNpfYA

    Joined:
    Dec 31, 2020
    Posts:
    1
    Why does the "mode" option don´t appear to me? i am in a subgraph working
     
  6. FredMoreau

    FredMoreau

    Unity Technologies

    Joined:
    May 27, 2019
    Posts:
    168
    Because adding a property to a Sub Graph will make an input, not a property.