DistanceToNearestSurface node issue in MaterialEditor

Was struggling with DistanceToNearestSurface node in Material Editor, cause it was kinda receiving distance field from the parent mesh itself:


Accidentaly found this AffectDistanceFieldLighting checkbox in mesh details on the level

Fixed my problem for now

But I’m not quite sure it its a proper solution for such issue.
Any thoughts?

It’s the only solution

1 Like