Further improvements to shadow effect