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

SCM Repository

[diderot] Diff of /trunk/test/vr.diderot
ViewVC logotype

Diff of /trunk/test/vr.diderot

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

revision 3063, Sat Mar 14 13:37:57 2015 UTC revision 3064, Sat Mar 14 13:38:34 2015 UTC
# Line 11  Line 11 
11    
12  image[3] img = image (dataFile);  image[3] img = image (dataFile);
13    
14  field#1[3] F = convolve (bspln3, img);  field#1(3)[3] F = bspln3 ⊛ img;
15    
16  strand RayCast (int row, int col)  strand RayCast (int row, int col)
17  {  {
# Line 24  Line 24 
24      {      {
25          vec<3> pt = pos + t*dir;          vec<3> pt = pos + t*dir;
26          t = t + stepSz;          t = t + stepSz;
27          vec<3> g = (D F)@pt;          vec<3> g = (D F)(pt);
28          color = over(color, phong(light, g, txf(F@pt)));          color = over(color, phong(light, g, txf(F(pt))));
29          if (color[3] >= 0.999)          if (color[3] >= 0.999)
30              stabilize;              stabilize;
31      }      }

Legend:
Removed from v.3063  
changed lines
  Added in v.3064

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