Hi, I’m using Unity 2020.2.1f1 with the new Decal Projector feature to do angle fading based on the angle between the decals direction and the surface. I need this feature to prevent incorrect projection of decals on surfaces like in the image I sent.
I’ve enabled Decal Layers in my HDRP asset which allows me to use the Angle Fade slider, however when I adjust this slider I see nothing happen. The decal always still projects fully in all directions, this happens with any decal material including the default one.
Works here for me, do make sure you also have Decal Layers enabled on your frame settings. You have to enable it on both HDRP asset and the frame settings!
To change this for all cameras, go to Project Settings → HDRP Default Settings and it’s listed quite quickly in Default Frame Settings for Rendering.
Any way to get this working in a custom decal shader?
Angle Fade works for me, when using the default decal shader, but in my custom shader, the slider does not affect the alpha.
Edit: if I turn the max value way down, it seems to be working, I have no idea why but I am fine with it.
If I increase the max value of the slider, everything becomes visible, min value on 0 of course.
I am still having this problem even with 6.0.41f. To be clear, the issue is specifically that decal angle fade is broken when using ‘Inherit from Hierarchy’. @kuo_minghsun fix seems to fix the issue, I’m curious if I’m doing something weird or if this does indeed still exist as an issue?
Do you have a simple repro on hands ? I tried looking at it (given that the “normalize” is still not in the code) but didn’t managed to repro on a simple case. On my side inherit or scale Invariant gives the same result.