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

SCM Repository

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

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

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

revision 1125, Thu May 5 11:13:07 2011 UTC revision 1126, Thu May 5 11:43:01 2011 UTC
# Line 93  Line 93 
93                   real k2 = (trace(Gten) - disc)/2.0;                   real k2 = (trace(Gten) - disc)/2.0;
94                   gray = gray*rival([min(0.55, |Gten|)/0.55, atan2(k2,k1)]);                   gray = gray*rival([min(0.55, |Gten|)/0.55, atan2(k2,k1)]);
95                }                }
96                vec3 matRGB = [1.0,1.0,1.0];                vec3 matRGB = depth(lerp(0.0, 1.0, camVspNear, rayN, camVspFar))
97                if (useDepth) {                              if useDepth else [1.0,1.0,1.0];
                  matRGB = depth(lerp(0.0, 1.0, camVspNear, rayN, camVspFar));  
               }  
98                rayRGB = rayRGB + rayTransp*aa*gray*matRGB;                rayRGB = rayRGB + rayTransp*aa*gray*matRGB;
99                rayTransp = rayTransp*(1.0 - aa);                rayTransp = rayTransp*(1.0 - aa);
100            }            }

Legend:
Removed from v.1125  
changed lines
  Added in v.1126

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