Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Create a decal via a Decal Renderer Feature in URP

Create a decal in your scene using a Decal Renderer Feature.
Read time 1 minuteLast updated 19 days ago

To add decals to your scene:
  1. Add the Decal Renderer Feature to the URP Renderer.
  2. Create a Material, and assign it the
    Shader Graphs/Decal
    shader. In the Material, select the Base Map and the Normal Map.

    Example decal Material

  3. Create a new Decal Projector GameObject, or add a Decal Projector component to an existing GameObject.
The following illustration shows a Decal Projector in the scene.

Decal Projector in the scene.

For more information, refer to the Decal Projector component.
An alternative way to add decals to a scene:
  1. Create a Quad GameObject.
  2. Assign a Decal Material to the GameObject.
  3. Position the Quad on the surface where you want the decal to be. If necessary, adjust the mesh bias value to prevent z-fighting.