Materials, how to specify the point from where it will change.

You can make a basic pupil like this:

350555-pupil.gif