I ran into a problem while making a toon shader. I wanted to add specular made out of dots, where central spot of the specular will have larger dots, while the specular border will have tiny dots. In other words, I want the dot size to be dynamic, based on the size of the specular.
I couldn't produce it, but if anyone knows how to do it, I would be grateful for a method.
Bellow is the simplest setup of some dots and as you can see I tried using gradient texture and plugging it into a scale input of the voronoi texture. That of course did not work. I'm guessing the solution is in multiple math nodes after the voronoi texture.
I'm also adding an image which showcases my goal.