For the required features, I didn't have time to finish that by the deadline, although I just written the needed functions, and didn't debug them.
1. motion blur. I move the object according to time, and then blend those images together. The speed is changing with time.
3. refraction. I use fresnel to calculate the reflection and refraction coefficient.