I’d like to highlight lines intersection by a circle of a different color or ton, on hover on them. Accuracy is clearly defines as a circle radius: everytime you hover to any lines intersection closer than the radius - circle appears, when you get outta it - it disappears
Heya, here’s a PG demo of one way to do this that I’ve been playing with.
So on the mouse move event the nearest grid joint’s position is calculated and passed to the shader.
The constant named cutoff (line 79) filters out the faded/empty areas in between the 6 main sections of the grid, in case you need to adjust that…
And then the NME version of the GridMaterial has a small customization to draw the circle (most of the new blocks are in the Circle frame in the upper-right corner of the graph).
Hope it helps and let me know if you have any questions about it.
It uses a NodeMaterial which must be loaded. If you have internet connection it should work as is but you can also click on the material’s link below, then on the right-side menu, under File, click Save to save it to a JSON file. And then you’ll need to use ParseFromFileAsync instead of ParseFromSnippetAsync.