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

SCM Repository

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

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

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

revision 2839, Tue Nov 25 19:45:46 2014 UTC revision 2840, Tue Nov 25 19:46:43 2014 UTC
# Line 37  Line 37 
37      {      {
38          pos = pos + stepSz*dir;          pos = pos + stepSz*dir;
39          if (inside (pos,F)) {          if (inside (pos,F)) {
40              real val = F@pos;              real val = F(pos);
41              vec3 norm = -normalize(∇F@pos);              vec3 norm = -normalize(∇F(pos));
42              if (val > valOpacMin) {  // we have some opacity              if (val > valOpacMin) {  // we have some opacity
43                  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));
44                  RR = RR + transp*opac*max(0.0, Rdir • norm);                  RR = RR + transp*opac*max(0.0, Rdir • norm);

Legend:
Removed from v.2839  
changed lines
  Added in v.2840

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