RefractionTexture + DecalMap enabled

Hello everbody,

unfortunately it is rather complicated to extract my issue to a sample sandbox, but i guess there is a chance that i just messed up something and u guys already know the solution.

i’ve setup a custom refraction texture which was working fine on it own, but since i’ve also enabled a decalmap on the very same pbr material the refractions behave pretty odd. it almost looks like a reflection “inside” instead of a refraction. when i disable the decalmap, everything goes back to normal.

any hints on this? my next step would be to provide some screenshots asap. for the moment i switched back to mesh based decals which cause their very own issues in my case.

UPDATE:

Here are some screenshots. First one is with decalMap.isEnabled = true

Here with decalMap.isEnabled = false

cc @Evgeni_Popov

Can you try to set applyDecalMapAfterDetailMap = true on your material and see if that helps? If not, I think we will need a repro to understand what’s going on, as it seems to work in this PG:

Every 2s, decal map is enabled/disabled (click on the alien to create a decal). As you can see, the refraction texture does not change when decal map is enabled or disabled.