You'd need a custom shader to do this, and a script that passes a trigger's collision shape to a material. Alternatively if this is 2D you might be able to do it with masks and drawing two sprites, one for in and out of the trigger.