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

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

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

revision 898, Wed Apr 20 17:22:47 2011 UTC revision 903, Thu Apr 21 14:09:20 2011 UTC
# Line 81  Line 81 
81         vec3 rayPos = camEye + rayN*rayVec;         vec3 rayPos = camEye + rayN*rayVec;
82         if (inside (rayPos,F)) {         if (inside (rayPos,F)) {
83            // ########## BEGIN per-sample code            // ########## BEGIN per-sample code
84            real val = F@rayPos;            real val = F(rayPos);
85            vec3 grad = ∇F@rayPos; // (here as easy target for optimization)            vec3 grad = ∇F(rayPos); // (here as easy target for optimization)
86            vec3 norm = normalize(-∇F@rayPos);            vec3 norm = normalize(-∇F(rayPos));
87            if (val > valOpacMin) {  // we have some opacity            if (val > valOpacMin) {  // we have some opacity
88                real alpha = min(1.0, lerp(0.0, 1.0, valOpacMin, val, valOpacMax));                real alpha = min(1.0, lerp(0.0, 1.0, valOpacMin, val, valOpacMax));
89                real ld = max(0.0, norm • lightDir);                real ld = max(0.0, norm • lightDir);

Legend:
Removed from v.898  
changed lines
  Added in v.903

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