Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Resolved Why is specular color 1-color on URP, but not in HDRP/BiRP?

Discussion in 'SRP Dev Blitz Day 2022 - Q&A' started by jbooth, Sep 28, 2022.

  1. jbooth

    jbooth

    Joined:
    Jan 6, 2014
    Posts:
    5,344
    Specular color in specular workflow is inverted in URP and has been since the LWRP days. Why?
     
    goncalo-vasconcelos likes this.
  2. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    504
    Either I didn't understand your point, or I didn't set things up properly, but from what I see the workflow is the same in all pipelines:
    Built-In
    Specular BI.gif
    URP
    Specular URP.gif
    HDRP
    Specular HDRP2.gif

    (Sorry for low quality gifs :/)
     

    Attached Files:

  3. jbooth

    jbooth

    Joined:
    Jan 6, 2014
    Posts:
    5,344



    - Switch workflow to specular
    - Set albedo to 1
    - Set Specular color to green
    - Create material
    - Purple cube (1-specularColor)

    Seems like maybe an unclamped lerp has a t of -1?
     
  4. jbooth

    jbooth

    Joined:
    Jan 6, 2014
    Posts:
    5,344
    @Remy_Unity was closed as by design when I reported it.
     
  5. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    504
    Ah indeed, in URP I get purple depending on the viewpoint and albedo : upload_2022-9-29_17-38-22.png

    Doesn't seems like something that should happen, but I don't have all the informations. I'll try to poke around internally, do you maybe still have the bug case ID ?
     
  6. jbooth

    jbooth

    Joined:
    Jan 6, 2014
    Posts:
    5,344
    Possibly - been a few years since I reported it, and as a UAS developer I have thousands of things in the system (every asset store release, etc).
     
  7. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    504
  8. DEEnvironment

    DEEnvironment

    Joined:
    Dec 30, 2018
    Posts:
    380
  9. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    504
    @DEEnvironment
    I don't see how the attached link is related.

    I did create an internal ticket to backport the fix, it should be pretty quick to do imho and I think it will be tackled soon.
     
    DEEnvironment likes this.