finally fixed the bug of missing geometries. The reason was when shadow ray hits nothing, it would be discarded. But instead it should be sent to the generator.