Fade/Gradient between object intersection using DistanceToNeareastSurface

Hello! Have you figured out a solution? I’m having a similar issue