Hexagon Rendering

A procedural field of hexes ( shader link ). Introducing Proximity You are making a turn based strategy game with a hexagonal landscape. To get started, you whip up a procedural hex renderer. You decide you want to have spaces between the hexes, and need to detect whether the user's mouse is in a hex or a space. Oddly enough, the proper execution of any of these 3 ideas requires a mathematical…