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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Shader errors originating in URP LitForwardPass

Discussion in 'Universal Render Pipeline' started by Balcora, Dec 21, 2020.

  1. Balcora

    Balcora

    Joined:
    Jan 15, 2020
    Posts:
    5
    I'm not sure how to begin debugging this issue... one of my shaders includes LitForwardPass.hlsl and is encountering these two errors in the library code:

    Shader error in 'myproject/EnemyShader': 'OutputAlpha': no matching 2 parameter function at /myproject/Library/PackageCache/com.unity.render-pipelines.universal@10.2.2/Shaders/LitForwardPass.hlsl(176) (on d3d11)​

    Shader error in 'myproject/EnemyShader': undeclared identifier '_Surface' at /myproject/Library/PackageCache/com.unity.render-pipelines.universal@10.2.2/Shaders/LitForwardPass.hlsl(176) (on d3d11)​
     
  2. Balcora

    Balcora

    Joined:
    Jan 15, 2020
    Posts:
    5
    Ah, I think I've solved the problem. I was creating my own set of inputs to replace LitInput.hlsl and a few have been added in 10.2.2 that weren't in my code.