add 3D light test to chapter 9

1.add 3D light to chapter 9.
2.modify some code.