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

Try having a look at this: