Make ray bounceback depend on the wall type.