shadow support improved

This update provide better shadowmap support.