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

Empower Stack: The demonstration

A step-by-step guide to build an on-demand courier delivery application

What’s new in core location in iOS 13 ?

8 Companies That Use Elixir in Production

Rari Capital’s Week #14 Track 🏎

The Case For Transitioning From Acting to Coding

LikeCoin Weekly Progress Update 2020.01.20

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

Depth with Unity TileMaps

Using Signal Emitters in Timeline to Alter Playback — Unity

Creating a Pressure Pad in Unity

Instantiating & Destroying GameObjects in Unity