.. _demo_custom_volume_emitters: A Custom Volume Emitter ======================= In this example we make a custom volume emitter by specifying a custom 3D function. Note that this emission function can be arbitrary and doesn't necessarily need to be isotropic. .. literalinclude:: ../../../../demos/materials/volume.py .. image:: volume_inhomogeneous.png :align: center