--- trunk/test/vr.diderot 2010/02/11 01:04:40 36 +++ trunk/test/vr.diderot 2010/02/11 03:51:54 38 @@ -3,7 +3,20 @@ // volume rendering example in Diderot // -input string dataFile; +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; + } + +}