Hello everyone, I’ve been trying to implement a system that allows you to change Deferred Decal material attributes per primitive. My initial approach was to change the values by using custom primitive data, but I realised it does not work with the Unreal Decal Actor.
Knowing this, I decided to go with Mesh Decals by using simple planes with the Deferred Decal material applied, and everything worked as expected, except right now Decals leak into other surfaces even if they are placed bellow.
I’d be pretty grateful if you could help me with this or if you faced this situation before.
What I expected to happen is that the plane that behaves as a Decal does not affect the ball, only the floor. It is weird because the Decal is right below the sphere so it should not be affecting it.
I’ve got more information, if I preview the DBuffer information, the MeshDecal is not taking the sphere into account to be projected while the regular DecalActor is occluded as expected.
I found the solution and it was pretty simple, somehow Near Clip Plane value was changed to 0.01 via DefaultEngine and it was messing up DBuffer behaviour.