set viewport for shadow render
bug fixed
refactoring
bug fixed