If you assign a shader to an object while you're in a render layer, it assigned it only for that layer.