I am in Linear color space for my project. I don’t know if this matters but it might be important information.
Project specs: (7.4.1, Unlit Graph, URP).
I found this bug while using a script to set a Global color. My script has you set a non-HDR color, but the shadergraph was reading this color as HDR (Even though in shader graph the color’s mode was set to Default, not HDR), so the results were off. I fixed it by making my script let you set an HDR color, but that seems non ideal.
Reproduction:
- Create a color
- Drag its output to a preview node. The output is correct.
- Change the default color to 6F3434
- Uncheck “Exposed”.
- The color picker appears as regular, but the previewed color is now wrong…
- If I set the color to a RGB to Linear node, the color appears correct.
See below:
- If I toggle Exposed back on, the preview is correct again.
- If i then set the mode to HDR, the “Default” color updates, but the preview is wrong, UNTIL I toggle Exposed OFF again (and if I toggle it back on, the preview is correct)