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 89, Thu May 27 01:37:21 2010 UTC revision 90, Thu May 27 02:52:07 2010 UTC
# Line 54  Line 54 
54             //// modulate : vec3 x vec3 -> vec3             //// modulate : vec3 x vec3 -> vec3
55             //// + : vec3 x vec3 -> vec3             //// + : vec3 x vec3 -> vec3
56             //// pow : real x real -> real             //// pow : real x real -> real
57             vec3 pntRGB = (ka + kd*ldotn)*modulate(matRGB,lightRGB) + ks*pow(hdotn,psh)*lightRGB;             vec3 pntRGB = (ka + kd*ldotn)*modulate(matRGB,lightRGB) + ks*pow(hdotn,sh)*lightRGB;
58             rayRGB = rayRGB + rayTransp*matRGBA[3]*pntRGB;             rayRGB = rayRGB + rayTransp*matRGBA[3]*pntRGB;
59             //// * : real x real -> real             //// * : real x real -> real
60             //// - : real x real -> real             //// - : real x real -> real
# Line 69  Line 69 
69          t = t + stepSz;          t = t + stepSz;
70      }      }
71    
   
72  }  }
73    
74    initially [ RayCast(r, c) | r in 0..1023, c in 0..1023 ];

Legend:
Removed from v.89  
changed lines
  Added in v.90

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