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 963, Mon Apr 25 14:49:44 2011 UTC revision 964, Mon Apr 25 15:01:00 2011 UTC
# Line 47  Line 47 
47  {  {
48      real rayU = lerp(-camUmax, camUmax, -0.5, real(ui), real(imgResU)-0.5);      real rayU = lerp(-camUmax, camUmax, -0.5, real(ui), real(imgResU)-0.5);
49      real rayV = lerp(-camVmax, camVmax, -0.5, real(vi), real(imgResV)-0.5);      real rayV = lerp(-camVmax, camVmax, -0.5, real(vi), real(imgResV)-0.5);
     // HEY (BUG) C syntax error;  
     // generated C code looks like "(float)p_ui_0--0.5e0f"  
     //real rayU = 2.0*camUmax*(real(ui) - -0.5)/real(imgResU) - camUmax;  
     //real rayV = 2.0*camVmax*(real(vi) - -0.5)/real(imgResV) - camVmax;  
50      vec3 rayVec = (camDist*camN + rayU*camU + rayV*camV)/camDist;      vec3 rayVec = (camDist*camN + rayU*camU + rayV*camV)/camDist;
51    
52      real rayN = camVspNear;      real rayN = camVspNear;

Legend:
Removed from v.963  
changed lines
  Added in v.964

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