Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Enable Clear Coat?

Discussion in 'Universal Render Pipeline' started by hard_code, Sep 15, 2020.

  1. hard_code

    hard_code

    Joined:
    Aug 29, 2013
    Posts:
    238
  2. Oleksandr_Kokoshyn

    Oleksandr_Kokoshyn

    Unity Technologies

    Joined:
    Feb 12, 2020
    Posts:
    6
    Hello,

    In the latest preview version of URP 10 the Clear Coat effect was moved from the Lit shader to the Complex Lit shader. Select the Complex Lit shader to enable the Clear Coat check box (see the attached screenshot).
    Sorry that the documentation is not updated yet!
     

    Attached Files:

    Jason-Michael likes this.
  3. hard_code

    hard_code

    Joined:
    Aug 29, 2013
    Posts:
    238
    Thanks for the response. I do not have a complex shader and am using 10.0.0-preview26 from package manager on 2020.2.b2. Is there a way to enable complex lit shader or do I need a version thats not available yet in package manager? If so how do I install the proper version?

    https://www.dropbox.com/s/jxtsrha5gtwraum/no_complex_shader.PNG?dl=0
     
  4. Oleksandr_Kokoshyn

    Oleksandr_Kokoshyn

    Unity Technologies

    Joined:
    Feb 12, 2020
    Posts:
    6
    Sorry, I have confused the URP versions:
    What I wrote is valid for URP 10.1.0-preview.25, which is the latest available preview version in the Graphics repository:
    https://github.com/Unity-Technologies/Graphics/tree/master/com.unity.render-pipelines.universal

    If you would like to try the latest development version:
    1. Clone the Graphics repository (https://github.com/Unity-Technologies/Graphics), or use the following link to download the zip archive with the content of the repository:
      https://github.com/Unity-Technologies/Graphics/archive/master.zip
    2. Follow the instructions on installing a package from a local folder to install the following packages:
      * com.unity.render-pipelines.core
      * com.unity.shadergraph
      * com.unity.render-pipelines.universal
    If Clear Coat does appear in 10.0.0-preview26, that might be an issue in the package. Let me know if you are interested in a possible workaround to make Clear Coat appear in the Lit shader (in 10.0.0-preview26).
     
  5. hard_code

    hard_code

    Joined:
    Aug 29, 2013
    Posts:
    238
    Sure let me know. I would like to stay with package manager if possible for ease of upgrading etc.
     
  6. Oleksandr_Kokoshyn

    Oleksandr_Kokoshyn

    Unity Technologies

    Joined:
    Feb 12, 2020
    Posts:
    6
    To show the Clear Coat check box in URP 10.0:
    In the following file:
    com.unity.render-pipelines.universal@10.0.0-preview.26/Shaders/Lit.shader

    uncomment the following line (remove "//" at the beginning of the line):
    Code (CSharp):
    1. //_ClearCoatSmoothness("Clear Coat Smoothness", Range(0.0, 1.0)) = 1.0
    The Clear Coat check box should show up in the Lit shader. The issue with this workaround is that the Smoothness property will not work on the Lit shader.

    This is fixed in URP 10.1. In URP 10.1 the Clear Coat feature is in the Complex Lit shader.
     
    hard_code likes this.