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

SCM Repository

[diderot] Diff of /benchmarks/programs/illust-vr/bmark-diderot.diderot
ViewVC logotype

Diff of /benchmarks/programs/illust-vr/bmark-diderot.diderot

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

revision 1654, Tue Nov 22 17:42:10 2011 UTC revision 1655, Tue Nov 22 18:29:29 2011 UTC
# Line 83  Line 83 
83                real k1 = (trace(Gten) + disc)/2.0;                real k1 = (trace(Gten) + disc)/2.0;
84                real k2 = (trace(Gten) - disc)/2.0;                real k2 = (trace(Gten) - disc)/2.0;
85                gray *= rival([min(0.55, |Gten|)/0.55, atan2(k2,k1)]);                gray *= rival([min(0.55, |Gten|)/0.55, atan2(k2,k1)]);
86                vec3 matRGB = depth(lerp(0.0, 1.0, camVspNear, rayN, camVspFar))                vec3 matRGB = depth(lerp(0.0, 1.0, camVspNear, rayN, camVspFar));
                             if useDepth else [1.0,1.0,1.0];  
87                rayRGB = rayRGB + rayTransp*aa*gray*matRGB;                rayRGB = rayRGB + rayTransp*aa*gray*matRGB;
88                rayTransp = rayTransp*(1.0 - aa);                rayTransp = rayTransp*(1.0 - aa);
89            }            }

Legend:
Removed from v.1654  
changed lines
  Added in v.1655

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