material fucniton work in preview but didn`t work in level

It`s Ok now, problem is in material, not in material function