Make Gradient between two gradient spheres I have two Empty Objects. They are both Scale 1, but have different Sizes set in properties:

They are each used as Object Texture Coordinates for a Spherical Gradient Texture. The smaller one is scaled down via a Mapping Node. The big one is in Blue, the small in Black:


I want to somehow get a gradient between the edges of these spheres. Here's a mockup of what it should look like (made by color ramping the big sphere):

Note that its hit full White by the inner circle. Here's another ramp from black to white to black to make it more clear:

The idea is that whatever I scale the Objects by, I'd always have a linear gradient from the edge of the outer sphere to the edge of the inner sphere.
Is this possible? I can think of some ways to do it with drivers (and a lot of setup), but I'm looking for a method using only nodes.
You can deduce the scales, and therefore the radii, of your Empties, by dividing the shaded object's Object-Space length to the shading-point, by the same length, in the Empty's spaces. (The Empties are set to display at 1 unit, and are at the object's origin in XY):

..The range between the radii can be mapped to (1-&gt;0), and clamped, using a Map Range node.
Here illustrated by putting the range through a color-ramp, and scaling the Empties:

.. Sorry, I can't get the Empties to show up very well in the .gif, but they are at the bounds of the gradation.