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

SCM Repository

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

Diff of /branches/charisee/test/vr-lite.diderot

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

revision 1116, Thu May 5 04:49:02 2011 UTC revision 1370, Wed Jun 22 21:11:20 2011 UTC
# Line 35  Line 35 
35      {      {
36          pos = pos + stepSz*dir;          pos = pos + stepSz*dir;
37          if (inside (pos,F)) {          if (inside (pos,F)) {
38              real val = F@pos;              real val = F(pos);
39              vec3 norm = -normalize(∇F@pos);              vec3 norm = -normalize(∇F(pos));
40              if (val > valOpacMin) {  // we have some opacity              if (val > valOpacMin) {  // we have some opacity
41                  real opac = min(1.0, lerp(0.0, 1.0, valOpacMin, val, valOpacMax));                  real opac = min(1.0, lerp(0.0, 1.0, valOpacMin, val, valOpacMax));
42                  gray = gray + transp*opac*max(0.0, -dir • norm);                  gray = gray + transp*opac*max(0.0, -dir • norm);

Legend:
Removed from v.1116  
changed lines
  Added in v.1370

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