Manually drag visibility, if the value is less than 1, the shadow will disappear
You should enable transparencyShadow on shadowGenerator. It is disabled by default.
transparencyShadow