Shadows Merging - Following the code (fixed version1)

SHADOWS MERGING