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

SCM Repository

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

Diff of /branches/pure-cfg/test/zslice-grad.diderot

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

revision 661, Tue Mar 22 01:28:11 2011 UTC revision 770, Thu Apr 7 20:42:13 2011 UTC
# Line 11  Line 11 
11    
12  strand RayCast (int row, int col)  strand RayCast (int row, int col)
13  {  {
14      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);
15      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);
16      vec3 pos = orig + rr*rVec + cc*cVec;      vec3 pos = orig + rr*rVec + cc*cVec;
17      output vec3 grad = [0.0, 0.0, 0.0];      output vec3 grad = [0.0, 0.0, 0.0];
18    

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

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