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

Question Upgrading from 2021.1 to 2021.3 URP shader looks good in viewport but shows color ramp ingame

Discussion in 'Universal Render Pipeline' started by Aardwing, Feb 9, 2023.

  1. Aardwing

    Aardwing

    Joined:
    Nov 3, 2015
    Posts:
    24
    Hello there, sorry if my title is a little bit confusing, I got back into gamedev after a very long time and I might not know all the right terminology. I had to upgrade my unity3d project for newer features, and I had a custom made dissolve 2D shader for a background.

    Ingame, everything works well except for my custom dissolve shader that looks correct in the viewport but in-game just shows up as a color ramp split into 4 sections.

    upload_2023-2-9_6-18-32.png
    upload_2023-2-9_6-17-55.png

    This is my shader graph :

    upload_2023-2-9_6-20-10.png

    If anyone has any idea as to how to fix this, I would greatly appreciate it. Thank you!
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,969
    Could you try Position instead of screen position?
     
  3. Aardwing

    Aardwing

    Joined:
    Nov 3, 2015
    Posts:
    24
    I tried switching , but it is still the same. Hmm
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,969
    Maybe delete the library folder to reimport everything?
    Otherwise I'm out of ideas. If you can reproduce it in a blank project make a bug report for it