Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Additive Blending with URP Decals

Discussion in 'Shader Graph' started by Clamaz, May 4, 2024.

  1. Clamaz

    Clamaz

    Joined:
    Oct 2, 2019
    Posts:
    2
    Hi all, sorry for the inexperienced question, but I need to modify the Decal Shader of URP so that it additive blends with the surface on which the projection occurs.
    I have the following image, which I could not/would not modify:
    upload_2024-5-4_19-23-45.png
    The result I would like is as follows (obtained through this shader https://github.com/Harry-Heath/URP-Decal-Node that exploits the Unlit one, so the blending mode option is available)
    upload_2024-5-4_19-18-55.png
    Whereas, with URP's decal shader I get the following result:
    upload_2024-5-4_19-22-0.png

    How do I create/edit a shader (from the one created by Unity) that behaves additively like the one shown in the first image?

    I'd like to use the one from Unity because I'm comfortable with the Decal Projector component, I think it's already optimized properly, and I'm sure it won't cause me problems in the project with future updates.

    Thank you very much for your help!
     
    Last edited: May 4, 2024
  2. JINGNOTJING

    JINGNOTJING

    Joined:
    Oct 21, 2022
    Posts:
    1
    You can output the map color to emission