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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question Duplicate shader works, original does not

Discussion in 'Shaders' started by chrismarch, Apr 21, 2021.

  1. chrismarch

    chrismarch

    Joined:
    Jul 24, 2013
    Posts:
    449
    I stripped my shader down to figure out why the vertex colors weren't working. No change I make seems to get it to correctly display vertex colors, except making a duplicate shader. The problem is on Android, Unity 2019.4.16f1. URP 7.5.3. It is a fragment shader. In the non working state, the fragment shader just returns white. What could cause an identical copy (except for the name) of a shader to work, but not the original, referenced from the same material?
     
    Last edited: Apr 22, 2021