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

SCM Repository

[diderot] Diff of /branches/vis12-cl/test/vr-lite.diderot
ViewVC logotype

Diff of /branches/vis12-cl/test/vr-lite.diderot

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

revision 384, Tue Oct 5 21:54:33 2010 UTC revision 385, Tue Oct 5 22:03:14 2010 UTC
# Line 39  Line 39 
39              vec3 grad = ∇F@pos;              vec3 grad = ∇F@pos;
40              vec3 norm = -grad/|grad|;              vec3 norm = -grad/|grad|;
41              if (val > valOpacMin) {  // we have some opacity              if (val > valOpacMin) {  // we have some opacity
42                  real opac = 0.0;     // dummy initialization                  real opac =
43                  if (val > valOpacMax) {                          1.0 if (val > valOpacMax)
44                     opac = 1.0;                          else (val - valOpacMin)/(valOpacMax - valOpacMin);
                 } else {  
                    opac = (val - valOpacMin)/(valOpacMax - valOpacMin);  
                 }  
45                  gray = gray + transp*opac*max(0.0, dot(-dir,norm));                  gray = gray + transp*opac*max(0.0, dot(-dir,norm));
46                  transp = transp*(1.0 - opac);                  transp = transp*(1.0 - opac);
47              }              }

Legend:
Removed from v.384  
changed lines
  Added in v.385

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