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

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/mip-cam.diderot
ViewVC logotype

Diff of /branches/pure-cfg/test/mip-cam.diderot

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

revision 775, Thu Apr 7 21:48:11 2011 UTC revision 776, Thu Apr 7 21:50:30 2011 UTC
# Line 25  Line 25 
25  int imgResV = 240;  int imgResV = 240;
26  real rayStep = 1.0;  real rayStep = 1.0;
27    
 real camDist = |camAt - camEye|;  
 real camVspNear = camDist + camNear;  
 real camVspFar = camDist + camFar;  
 vec3 camN = (camAt - camEye)/camDist;  
28  // HEY (want) it would be nice if we could have initializing statements...  // HEY (want) it would be nice if we could have initializing statements...
29  // (though motivation for this here has been resolved)  // (though motivation for this here has been resolved)
30    real camDist = |camAt - camEye|;
31    real camVspNear = camNear + camDist;
32    real camVspFar = camFar + camDist;
33    vec3 camN = normalize(camAt - camEye);
34  vec3 camU = normalize(camN × camUp);  vec3 camU = normalize(camN × camUp);
35  vec3 camV = camN × camU;  vec3 camV = camN × camU;
36  real camVmax = tan(camFOV*3.1415926536/360.0)*camDist;  real camVmax = tan(camFOV*3.1415926536/360.0)*camDist;

Legend:
Removed from v.775  
changed lines
  Added in v.776

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