Using Filters for Shadows of 3D Surfaces

Even though SVG is a 2D vector format, plot2svg can be used to create stunning 3D effects. The SVG filter effects can be used to create shadows that enhance the 3D effect. Following example creates a sphere with semi-transparent surface together with a shadow. The current version of plot2svg does not support depth-buffer sorting of surfaces from different objects. Thus, the correct sequence has to be created manually.