Material vanishes when camera is far away

Maybe your object has automatic LOD and that creates the mess. Try disabling this checkbox in asset window, and rebuild the scene again.