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

After updating URP package, Error failed to open source file LitInput.hlsl ?

Discussion in 'Universal Render Pipeline' started by Gordon_G, Jul 8, 2020.

  1. Gordon_G

    Gordon_G

    Joined:
    Jun 4, 2013
    Posts:
    358
    Hey all,
    I'm getting this error when opening a project I've been working on, and when I switch the build platform to windows:
    basically, failed to open source file LitInput.hlsl

    The only things I can think of that I did before this started happening are I upgraded the URP package in the package manager to the latest one, and I changed something in the build settings related to which shaders are always included.

    I've looked at the actual project folder LitInput.hlsl is there in the project folder.

    Either way, posts in other forums and elsewhere on the web don't seem to have any suggestions for how to fix this. (i'm working on a Mac if it makes any difference.)

    Anyone have any ideas on what the problem is and how to resolve it?

    Thanks for your help!
     
    ZenUnity likes this.
  2. ZenUnity

    ZenUnity

    Joined:
    Apr 21, 2013
    Posts:
    28
    I was getting this error along with certain materials turning pink after cloning a repo. Selecting the affected materials and resetting their shaders fixed this for me.