Decals in URP & HDRP #Shorts




Published: 02 Jun 2022

Full Tutorial: https://youtu.be/5p8cKIu3P_8


New in 2021! URP (URP12) supports a Decal Projector much like HDRP has had since HDRP6!


Many of us who aren't super comfortable writing our own shaders relied on 3rd party tools for decal projections or went with simple quads for decals. As of Unity 2021, URP now has a Decal Projector much like HDRP has had for a while. It's not perfect, but it's a big improvement over the quad-based decal systems I've implemented before. I'm hopeful the URP one continues to get improvements as new URP and Unity releases come out.


In this tutorial I'll show how to enable decals in URP, review all the configuration options in the render asset and what they do, and go over what all the decal projector options do. We'll do the same again for HDRP so you have an informed starting point for adding decals into your game regardless if you're using URP or HDRP.


Unfortunately the Built-in render pipeline still doesn't support them without custom shaders, so you'll have to write your own or use a 3rd party solution to get a similar result over there.


If you got value from this video, please consider liking, subscribing, and sharing to help these tutorials reach and add value to even more people. New tutorials are posted every Tuesday!


As always, all code from this video is available on GitHub:

URP: https://github.com/llamacademy/

HDRP: https://github.com/llamacademy/


📚 Resources 📚

⚫ Decal Rendering in URP 12: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@12.0/manual/renderer-feature-decal.html

⚫ Decal Shader in URP12: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@12.0/manual/decal-shader.html

⚫ Decal Projector in HDRP: https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@12.1/manual/Decal-Projector.html

⚫ Decal Shader in HDRP: https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@12.1/manual/Decal-Shader.html



----


Believe in LlamAcademy's mission and have received value from the videos? Consider becoming a Patreon supporter: https://www.patreon.com/llamacademy


----

Most tutorials come from knowledge gained making https://survival.llama.software Llama Survival - a top-down zombie survival shooter for Android and iOS.

I also have some Unity Assets (affiliate link): https://assetstore.unity.com/publishers/22409?_aid=1101l9QvC


Connect on Social Media

Some links may be affiliate links, which at no additional cost to you, gives LlamAcademy a small portion of the purchase.