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

SCM Repository

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

Diff of /branches/vis12/test/vr-phong.diderot

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

revision 53, Tue Apr 20 15:58:22 2010 UTC revision 54, Tue Apr 20 15:58:46 2010 UTC
# Line 25  Line 25 
25  actor RayCast (int row, int col)  actor RayCast (int row, int col)
26  {  {
27      vec3        pos = orig + row*rVec + col*cVec;      vec3        pos = orig + row*rVec + col*cVec;
28      vec3        dir = pos - eye/|pos - eye|;      vec3        dir = (pos - eye)/|pos - eye|;
29      real        t = 0.0;      real        t = 0.0;
30      vec3        rayRGB = (0.0, 0.0, 0.0);      vec3        rayRGB = (0.0, 0.0, 0.0);
31      real        rayTransp = 1.0;      real        rayTransp = 1.0;

Legend:
Removed from v.53  
changed lines
  Added in v.54

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