// vr.diderot // // volume rendering example in Diderot // input string dataFile; // name of dataset input real stepSz; // size of steps image<3> img = load (dataFile); actor RayCast (int row, int col) { vec<3> dir = (real(row), real(col)); vec<3> pos = (0.0, 0.0); vec<3> t = 0.0; update { pos = pos + t*dir; } }