Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Lightweight PR doesn't load properly

Discussion in 'Shaders' started by CatInTree, Jun 11, 2018.

  1. CatInTree

    CatInTree

    Joined:
    Jun 11, 2018
    Posts:
    5
    Whenever I attempt to use the Lightweight Render Pipeline template for shader graphs, the package is imported incorrectly, which causes around 10 compiler errors.

    Shader error in 'GPUCopy.compute': failed to open source file: '../ShaderLibrary/Common.hlsl' at kernel KSampleCopy4_1_x at GPUCopy.compute(3) (on d3d11)


    Shader error in 'EncodeBC6H.compute': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at kernel KEncodeFastCubemapMip at EncodeBC6H.compute(1) (on d3d11)


    Shader error in 'LightweightPipeline/Terrain/Standard Terrain': failed to open source file: 'LWRP/ShaderLibrary/Terrain/InputSurfaceTerrain.hlsl' at line 63 (on d3d11)


    Shader error in 'LightweightPipeline/Terrain/Standard Terrain': failed to open source file: 'LWRP/ShaderLibrary/InputSurfacePBR.hlsl' at line 84 (on d3d11)


    Shader error in 'LightweightPipeline/Standard (Simple Lighting)': failed to open source file: 'LWRP/ShaderLibrary/InputSurfaceSimple.hlsl' at line 102 (on d3d11)


    Shader error in 'LightweightPipeline/Standard (Simple Lighting)': failed to open source file: 'LWRP/ShaderLibrary/InputSurfaceSimple.hlsl' at line 133 (on d3d11)


    Assembly has reference to non-existent assembly 'Unity.ShaderGraph.Editor' (Packages/com.unity.render-pipelines.lightweight/LWRP/Editor/com.unity.render-pipelines.lightweight.Editor.asmdef)


    Shader error in 'LightweightPipeline/Standard (Physically Based)': failed to open source file: 'LWRP/ShaderLibrary/InputSurfacePBR.hlsl' at line 148 (on d3d11)


    This makes the Lightweight RP unusable, in my case.

    What causes this and how do I fix it?

    EDIT: fixed inline code; forgot a bracket
     
    Last edited: Jun 11, 2018
  2. CatInTree

    CatInTree

    Joined:
    Jun 11, 2018
    Posts:
    5
  3. CatInTree

    CatInTree

    Joined:
    Jun 11, 2018
    Posts:
    5
  4. CatInTree

    CatInTree

    Joined:
    Jun 11, 2018
    Posts:
    5
    BUMP BUMP
     
  5. EdBoon

    EdBoon

    Joined:
    Nov 24, 2014
    Posts:
    97
    Did you ever resolve this? I am experiencing the same thing