edit URP builtin decal shadergraph to be unlit or unaffected by light?

Hello, I have been using the newly made Decal projector system recently added into URP and while it does have its bugs and all I think its a great first version. However one issue I have with this shader, is the fact that I am unable to (due to my limited knowledge of shaders) make this shader unlit or be unaffected by lighting. as you can see in the images below, the smile icon on the sphere is just a decal projector. I would like for it to be able to be unaffected by lighting.

We can see here when I rotate the directional light, the lighting on the decal gets darkened.
Here is a screenshot of what the Unity Decal shadergraph looks like, I’ve tried changing the material to unlit in the graph settings however the URP decal projector component only takes in materials with a setting of type “Decal”. Is there anything I can add to this shadergraph to be unaffected by lighting and not by changing its material in the graph settings?

1 Like

I didn’t have a chance to try it, but decal “modifies” the material below it, so you changed the color of the sphere only and it’s still affected by light. I guess you can do what you wanted using emission. Change graph settings to support “affect emission” only and use your smile as emission. Actually this will combine with texture below, so maybe you need to override base color too and set it to black, so it’s only the color of your smile.

1 Like