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

SCM Repository

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

Diff of /trunk/test/vr-phong.diderot

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

revision 243, Fri Aug 6 15:27:47 2010 UTC revision 249, Fri Aug 6 21:37:04 2010 UTC
# Line 19  Line 19 
19    
20  image(3)[] img = load (dataFile);  image(3)[] img = load (dataFile);
21    
22  //field#1(3)[] F = convolve (bspln3, img);  //field#1(3)[] F = img (*) bspln3;
23  field#2(3)[] F = convolve (bspln3, img);  field#2(3)[] F = img (*) bspln3;
24    
25  field#0(1)[4] txf = convolve (tent, load(txfFile));  field#0(1)[4] txf = load(txfFile) ⊛ tent;
26    
27  actor RayCast (int row, int col)  actor RayCast (int row, int col)
28  {  {
# Line 36  Line 36 
36      {      {
37          if (inside (pos,F)) {          if (inside (pos,F)) {
38             real val = F@pos;             real val = F@pos;
39             vec3 grad = (D F)@pos;             vec3 grad = (∇ F)@pos;
40             vec3 norm = grad/|grad|;             vec3 norm = grad/|grad|;
41             vec3 halfDir = (lightDir - dir)/|lightDir - dir|;             vec3 halfDir = (lightDir - dir)/|lightDir - dir|;
42             vec4 matRGBA = txf@[val];             vec4 matRGBA = txf@[val];

Legend:
Removed from v.243  
changed lines
  Added in v.249

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