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. Dismiss Notice

Bug URP Lit (Specular) Shader Incorrect?

Discussion in 'Universal Render Pipeline' started by kadd11, Jun 3, 2022.

  1. kadd11

    kadd11

    Joined:
    Mar 11, 2018
    Posts:
    33
    I was trying out the Universal Render Pipeline and comparing the
    Universal Render Pipeline/Lit
    shader (specifically in specular workflow) to the builtin Standard Specular shader, and am getting very different output between the two. Specifically (these are both default projects and default scenes, haven't changed any of the lighting settings, etc) the builtin standard specular shader looks something like:

    upload_2022-6-2_16-7-5.png

    While the URP lit shader looks something like:

    upload_2022-6-2_16-7-38.png

    Based on the output, it seems like the specular color is flipped/inverted from what I would expect, but I know there are a lot of differences between URP and the built in pipeline, so maybe I am missing something and this is expected.

    EDIT: I am asking because I was going to use the URP Lit shader as reference for my own custom shaders, but it would be useful to know if it is incorrect.
     
  2. DevilBlackDeath

    DevilBlackDeath

    Joined:
    Mar 16, 2014
    Posts:
    14
    I assume it's done properly but I'd rather ask than not just to be safe. You created the URP Asset and set it and configured it correctly in the Project settings ?

    Also I think for people more well versed or with more access to various versions, telling the version of Unity and URP used will likely help them pinpoint the issue better (though if not told I'd assume you're using the latest of both ?)
     
  3. JasonBooth

    JasonBooth

    Joined:
    Jan 27, 2014
    Posts:
    619
    Specular color is flipped on URP - I filed a bug on it maybe 2 years ago..
     
    kadd11 likes this.
  4. sh0v0r

    sh0v0r

    Joined:
    Nov 29, 2010
    Posts:
    320
    Wow, thanks for the confirmation, I thought I was going mad yesterday. 8 Months later and its still not fixed!?
     
  5. JasonBooth

    JasonBooth

    Joined:
    Jan 27, 2014
    Posts:
    619
    Highly doubt it will ever be
     
  6. Elvar_Orn

    Elvar_Orn

    Unity Technologies

    Joined:
    Dec 9, 2019
    Posts:
    158
    Hey,
    What version of Unity are you using?