Ray Marching a Volume Texture

really? It should work to simply make max steps a param like this

for(int i = 0; i < MaxSteps; i++)

then just make MaxSteps a variable input with scalar param. thats how POM does it.