Using Decals in Unity

In this article, I will go over Decals in Unity HDRP.

A decal is a texture that can be projected over the material, think like a sticker in photoshop, graffiti on a brick wall or blood splatter on the ground.

Adding a decal to an object in Unity is pretty straightforward. Once you have created or downloaded your texture you’ll want to add create new material. To do this go to the Project tab and click the “+” button and select material, this will create a default material, rename this appropriately.

Next, you need to switch the shader to HDRP/Decal. To do this click the shader dropdown and select “HDRP” > “Decal”.

Now, we can add the base map, mask map and normal maps to the surface inputs.

The next step is to create a “Decal Projector” into our scene and assign our new texture. To do this click the “+” button in the Hierarchy tab and select “Rendering” > “Decal Projector” then drag the newly created material into the “Material” input.

Now you can move your Decal projector around your scene and project the material over your objects.

That's all for now.

--

--

--

Unity developer with a love of learning all things programming.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to maintain digital IP and comply with laws in a digital way.

Difference between CSS position Relative and Absolute

To Nest or Not to Nest…

A screeenshot of the Carpool Cool Tool app

Dev Day 66: Using Lerp-Over-Time to Evade Shots in Unity3D

Interview with Robert O’Connor about How to Achieve Smooth Handovers

SEOR Weekly Chat in discord

Obsidian: Data Without Fences

In a field a closed gate stands- but there is no fence on either side!

Sometimes a talk between two developers could sound gibberish for a PM

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Luke Duckett

Luke Duckett

Unity developer with a love of learning all things programming.

More from Medium

Light layers in Unity HDRP

Unity : Cinemachine and Timeline (Part VII)

What is Filebase and How do you use it?

Giving the enemies some teeth