Texture switch depending player position

While the player is moving, textures change around him.

Apply the material and the script on your objects.

Your player gameobject must be called "Player"

 

Shader : https://pastebin.com/596zc1py

Script : https://pastebin.com/JxWdQFKZ