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

SCM Repository

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

Diff of /branches/pure-cfg/test/vr-lite-cam.diderot

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

revision 1015, Fri Apr 29 19:57:56 2011 UTC revision 1016, Fri Apr 29 21:59:23 2011 UTC
# Line 78  Line 78 
78         if (inside (rayPos,F)) {         if (inside (rayPos,F)) {
79            // ########## BEGIN per-sample code            // ########## BEGIN per-sample code
80            real val = F(rayPos);            real val = F(rayPos);
81              if (val > valOpacMin) {  // we have some opacity
82            vec3 grad = ∇F(rayPos); // (here as easy target for optimization)            vec3 grad = ∇F(rayPos); // (here as easy target for optimization)
83            vec3 norm = normalize(-∇F(rayPos));            vec3 norm = normalize(-∇F(rayPos));
           if (val > valOpacMin) {  // we have some opacity  
84                real alpha = min(1.0, lerp(0.0, 1.0, valOpacMin, val, valOpacMax));                real alpha = min(1.0, lerp(0.0, 1.0, valOpacMin, val, valOpacMax));
85                real ld = max(0.0, norm • lightDir);                real ld = max(0.0, norm • lightDir);
86                real hd = max(0.0, norm • normalize(lightDir + toEye));                real hd = max(0.0, norm • normalize(lightDir + toEye));

Legend:
Removed from v.1015  
changed lines
  Added in v.1016

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