URP Decals on WebGL

Hi,

I’m trying to use some URP Decals on my project, they work fine on the editor, but when i test it on the build they don’t show up.

Does anyone know if there are any incompatibilities or any specific configuration for it to work?

1 Like

Happened to me today too. I suspect “Unused shader stripping” which I had turned on on my URP project. Not only decals were gone but also terrain details and the terrain looked weirdly glossy. When I turned shader stripping off the build took ages and after publishing it failed to show in browser with “Out of memory” error. The URP WebGL support appears to be seriously broken in current 2022.1.6f1. Very sad for URP being positioned to become the primary pipeline.

Late to the party, but to help whoever is looking like I was, at the moment Decals in URP seem to only work if the technique set in your URP Renderer is on Screen Space (or Automatic). Set it to DBuffer and they won’t show up.

However, like @KrystofZacek I also get a weird flickering on other objects when I build. That I don’t know what is it!

Hello, i changed the technique as you suggested but after i do a WebGL build, my decals still do not appear. I am not quite sure what to do now :frowning:

1 Like

hey guys, I tried all the tips in this thread and this is still not working in Unity LTS 2022.3.3f1 and URP 14.0.8 …

Anybody got this working?

1 Like

It seems like theres in no available solution for decals on WebGL.
DBuffer is not suppoted.
Screen Space supports only normal blending, which is not what you need in most cases.

Following this issue, it’s very annoying.

Using a URP Decal Projector for blob shadows. As @DavidDreamer suggests DBuffer isn’t supported. It mostly works for me but if I change Graphics Quality at runtime some of them disappear and never return :eyes:

So it seems there’s an incompatibility with URP’s Decal material type and the WebGL platform, right?

Hey, I have a rather specific setup on my end, but someone else could be running into this thing and losing 2 days, same as me.
I have stacked cameras with stacked renderers and I was getting a full black render from the renderer that had decals feature on it.
I fixed it setting the decal feature Technique to Screen Space and disabling the Use Rendering Layers option.
This could be specific to what I’m doing(stacked renderers w different layers), but then again, who knows, afaik it’s supposed to be working in the first place.

Disabling Use Rendering Layers worked for me. Champion thank you. This problem was only specific to FireFox, Use Rendering Layers worked on Chrome/Edge

1 Like