Second order pre-integrated volume rendering

trying to implement this algorithm