Making a texture more detailed as you get closer

These three links will guide you:
One
Two
Three