write the new code for the new light model, only finish the x-y translation and rotation part