createNode -n "se" shadingEngine;
shadingNode -n "vol1" -asShader mib_volume;
shadingNode -n "vol2" -asShader mib_volume;
shadingNode -n "blend" -asUtility blendColors;
connectAttr -force vol1.outValue blend.color1;
connectAttr -force vol2.outValue blend.color2;
connectAttr -force blend.output se.miVolumeShader;
shadingNode -n "sampler" -asUtility samplerInfo;
connectAttr -force sampler.uCoord blend.blender;
[ and assign it to a nurbs torus for example ]
Now this works ok except that surface point being sampled by samplerInfo node is always the back face, not the front. Of course, It can be fixed if we instruct mr to render only the front faces but that will disable volume shaders.
How to tell samplerInfo to 'see' only the front faces?