DistanceToNearestSurface material node disables shadows from masked materials.

UPD

Omg. I have similar trouble. But in another direction. I had FULL shading.

The reason for the issue is “DistanceToNearestSurface” node? I was told that there is a possibility that the rendering order, in this case, does not work correctly

But I can’t refuse it or replace it with some other node. Different variations of the “Lighting” settings of the object did not give a satisfactory result.

Maybe someone has encountered such a problem too and knows a possible solution?

@Shanyu, may you ping me please if developers or other experts will prompt a solution