Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Editor Upgrade - LWRP Standard Shaders Failing to Compile *FIXED*

Discussion in 'Editor & General Support' started by Duckocide, Feb 18, 2019.

  1. Duckocide

    Duckocide

    Joined:
    Aug 30, 2014
    Posts:
    35
    Can anyone point towards a fix for this?

    Upgraded Editor to 2018.3.6 and getting the following errors. When I open containing folder (from VS) though the #include file appears to be there?

    upload_2019-2-18_11-1-32.png

    Scene view is all magenta and shaders are listed under "failed to compile".
     
  2. Duckocide

    Duckocide

    Joined:
    Aug 30, 2014
    Posts:
    35
    OK. After a bit of fiddling around, editing the Lit.shader (and any others in error) line error from:

    Code (CSharp):
    1. #include "LitInput.hlsl"
    to:

    Code (CSharp):
    1. #include "Packages/com.unity.render-pipelines.lightweight/Shaders/LitInput.hlsl"
    Fixed the errors (for me) and scene window is now displaying OK.

    The last error on CopyDepthPass.hlsl was fixed with...

    Code (CSharp):
    1. #include "Packages/com.unity.render-pipelines.lightweight/Shaders/Utils/CopyDepthPass.hlsl"
     
    ToThinkIsToCreate likes this.
  3. ToThinkIsToCreate

    ToThinkIsToCreate

    Joined:
    Jun 15, 2017
    Posts:
    16
    since its read only do you have to create like a new file?
     
  4. ToThinkIsToCreate

    ToThinkIsToCreate

    Joined:
    Jun 15, 2017
    Posts:
    16
    When I get home I'm going to try this, I cant really do my work til I get it fixed, I have the same symptoms