Procedural: volume generator

!
The first picture,volume generator Unable to perform light attenuation,Do not know why?

The second picture can