Improvements to custom sensor volume fragment shader.

This is some refactoring to generalize the implementation, remove an extraneous ellipsoid intersection test, and fix a shader artifact produced by the use of dfdx and dfdy derivatives for ellipsoid boundary line antialiasing.