urp-fading-standard-shaders icon indicating copy to clipboard operation
urp-fading-standard-shaders copied to clipboard

Learn how you can easily fade out objects that are using the standard URP shaders that obstruct view to the player using C# code!

URP Fading Standard Shaders

Learn how you can easily fade out objects that are using the standard URP shaders that obstruct view to the player using C# code! Using the Built-In Render Pipeline? It's a very similar process. Check out this GitHub repository with accompanying video tutorial for the same effect, but for the Built-In Render Pipeline.

In THIS tutorial you'll see how to determine which material properties to adjust for the standard URP shaders:

  • Unversal Render Pipeline/Lit
  • Unversal Render Pipeline/Complex Lit
  • Unversal Render Pipeline/Simple Lit
  • Unversal Render Pipeline/Unlit
  • Unversal Render Pipeline/Baked Lit as well as learn the process to determine which properties to modify for any other shader when documentation is lacking!

In my tests this performs on average, 0.04ms per frame with the code here, which is, in my opinion, for most cases "good enough" performance to use when you do not know how to make a shader to do this, or just want to keep using the standard URP shaders.

Youtube Tutorial

Patreon Supporters

Have you been getting value out of these tutorials? Do you believe in LlamAcademy's mission of helping everyone make their game dev dream become a reality? Consider becoming a Patreon supporter and get your name added to this list, as well as other cool perks. Head over to https://patreon.com/llamacademy to show your support.

Phenomenal Supporter Tier

  • Andrew Bowen
  • YOUR NAME HERE!

Tremendous Supporter Tier

  • YOUR NAME HERE!

Awesome Supporter Tier

  • Gerald Anderson
  • AudemKay
  • Matt Parkin
  • Ivan
  • YOUR NAME HERE!

Supporters

  • Bastian
  • Trey Briggs
  • YOUR NAME HERE!

Other Projects

Interested in other AI Topics in Unity, or other tutorials on Unity in general?

Socials

Requirements

  • Requires Unity 2020.3 LTS or higher.