How can I use ray cast volume rendering customizing my own shader?

Thanks a lot for your help—your answer solved the issue perfectly!