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

SCM Repository

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

Diff of /branches/charisee/test/illust-vr.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 35  Line 35 
35  real refStep = 1.5;  real refStep = 1.5;
36    
37  // (boilerplate) computation of camera and light info  // (boilerplate) computation of camera and light info
38  real camDist = |camAt - camEye|;  real camDist = 4;//|camAt - camEye|;
39  real camVspNear = camNear + camDist;  real camVspNear = camNear + camDist;
40  real camVspFar = camFar + camDist;  real camVspFar = camFar + camDist;
41  vec3 camN = normalize(camAt - camEye);  vec3 camN = normalize(camAt - camEye);
# Line 64  Line 64 
64         if (inside (pos,F)) {         if (inside (pos,F)) {
65            real val = F(pos);            real val = F(pos);
66            vec3 grad = -∇F(pos);            vec3 grad = -∇F(pos);
67            real gmag = |grad|;            real gmag = 3;//|grad|;
68            real aa = alpha([max(0.0, min(2000.0, val)), max(0.0, min(900.0, gmag))]);            real aa = alpha([max(0.0, min(2000.0, val)), max(0.0, min(900.0, gmag))]);
69            if (aa > 0.0) {  // we have some opacity            if (aa > 0.0) {  // we have some opacity
70                vec3 norm = grad/gmag;                vec3 norm = grad/gmag;

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