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

SCM Repository

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

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

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

revision 769, Thu Apr 7 20:30:51 2011 UTC revision 770, Thu Apr 7 20:42:13 2011 UTC
# Line 44  Line 44 
44              vec3 grad = ∇F@pos;              vec3 grad = ∇F@pos;
45              vec3 norm = -grad/|grad|;              vec3 norm = -grad/|grad|;
46              if (val > valOpacMin) {  // we have some opacity              if (val > valOpacMin) {  // we have some opacity
47                  real opac = min(lerp(0.0, 1.0, valOpacMin, val, valOpacMax), 1.0);                  real opac = min(1.0, lerp(0.0, 1.0, valOpacMin, val, valOpacMax));
48                  RR = RR + transp*opac*max(0.0, dot(Rdir,norm));                  RR = RR + transp*opac*max(0.0, dot(Rdir,norm));
49                  GG = GG + transp*opac*max(0.0, dot(Gdir,norm));                  GG = GG + transp*opac*max(0.0, dot(Gdir,norm));
50                  BB = BB + transp*opac*max(0.0, dot(Bdir,norm));                  BB = BB + transp*opac*max(0.0, dot(Bdir,norm));

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

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