In other words, is it possible to render an image of a cube like this:

But make the "spheres" refractive as opposed to scattering volumes?
When I attempted with this (I did not expect it to succeed):

I got this:

As you can see, there are no surfaces inside the cube.
Is it possible to render a procedural texture in 3D so that black parts bend or reflect light?
