Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/zslice2.diderot
ViewVC logotype

Diff of /branches/pure-cfg/test/zslice2.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 744, Wed Apr 6 13:16:05 2011 UTC revision 770, Thu Apr 7 20:42:13 2011 UTC
# Line 20  Line 20 
20    
21  strand RayCast (int row, int col)  strand RayCast (int row, int col)
22  {  {
23      real rr = real(dataSize)*(real(row)+0.5)/real(imgSize) - 0.5;      real rr = lerp(-0.5, real(dataSize)-0.5, -0.5, real(row), real(imgSize)-0.5);
24      real cc = real(dataSize)*(real(col)+0.5)/real(imgSize) - 0.5;      real cc = lerp(-0.5, real(dataSize)-0.5, -0.5, real(col), real(imgSize)-0.5);
25      vec3 pos = orig + rr*rVec + cc*cVec;      vec3 pos = orig + rr*rVec + cc*cVec;
26      output real maxval = -∞;      output real val = -∞;
27    
28      update      update
29      {      {
30          if (inside (pos,F)) {          if (inside (pos,F)) {
31            maxval = F@pos;            val = F@pos;
32          }          }
33          stabilize;          stabilize;
34      }      }

Legend:
Removed from v.744  
changed lines
  Added in v.770

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0