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.diderot
ViewVC logotype

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

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

revision 765, Thu Apr 7 20:24:10 2011 UTC revision 770, Thu Apr 7 20:42:13 2011 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 =                  real opac = min(1.0, lerp(0.0, 1.0, valOpacMin, val, valOpacMax));
                         1.0 if (val > valOpacMax)  
                         else (val - valOpacMin)/(valOpacMax - valOpacMin);  
43                  gray = gray + transp*opac*max(0.0, -dir • norm);                  gray = gray + transp*opac*max(0.0, -dir • norm);
44                  transp = transp*(1.0 - opac);                  transp = transp*(1.0 - opac);
45              }              }

Legend:
Removed from v.765  
changed lines
  Added in v.770

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