Search Unity

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,461
    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:
    704
    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,461



    - 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,461
    @Remy_Unity was closed as by design when I reported it.
     
  5. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    704
    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,461
    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:
    704
  8. DEEnvironment

    DEEnvironment

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

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    704
    @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.