Method and apparatus for shadow generation process