Рет қаралды 36,939
New in 2021! URP (URP12) supports a Decal Projector much like HDRP has had since HDRP6!
🚨 Starting with Unity 2022.1 / URP14 Render Layers are supported! docs.unity3d.com/Packages/com...
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.
💸 Ongoing sales 💸
⚫ See all active asset sales on the Asset Store: assetstore.unity.com/?on_sale...
⚫ Save 25% off your first Asset Store Order: prf.hn/click/camref:1101l9QvC...
⚫ Save up to 50% on NEW Assets: assetstore.unity.com/?new_sal...
👨💻 As always, all code from this video is available on GitHub:
⚫ URP: github.com/llamacademy/urp-de...
⚫ HDRP: github.com/llamacademy/hdrp-d...
❤ Believe in LlamAcademy's mission and have received value from the videos? Become a Patreon Supporter or KZfaq Member:
⚫ Patreon: / llamacademy
⚫ KZfaq Member: / @llamacademy or click the Join button on any video
📚 Resources 📚
⚫ Decal Rendering in URP 12: docs.unity3d.com/Packages/com...
⚫ Decal Shader in URP12: docs.unity3d.com/Packages/com...
⚫ Decal Projector in HDRP: docs.unity3d.com/Packages/com...
⚫ Decal Shader in HDRP: docs.unity3d.com/Packages/com...
----
Most tutorials come from knowledge gained making survival.llama.software Llama Survival - a top-down zombie survival shooter for Android and iOS.
I also have some Unity Assets (affiliate link): assetstore.unity.com/publishe...
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
#unitytutorial #tutorialtuesday #gamedev #tutorial #unity #llamacademy #gamedevelopment #decal #urp #hdrp
Chapters:
00:00 Topic Introduction
01:56 Enabling URP Decals
02:37 URP Decal Configuration Overview
04:26 URP Decal Projector Overview
06:06 URP - The "Shader Graphs/Decal" Shader
07:37 URP Decal Performance & Batching
08:31 Enabling Decals in HDRP & Configuration Overview
09:06 The HDRP/Decal Shader
10:33 HDRP Decal Projector Overview
11:31 HDRP Decal Performance & Batching
11:51 HDRP Decal Projector Bonus Feature
12:57 Final Thoughtsrr