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

SCM Repository

[diderot] Diff of /branches/vis12/test/vr-phong.diderot
ViewVC logotype

Diff of /branches/vis12/test/vr-phong.diderot

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

revision 249, Fri Aug 6 21:37:04 2010 UTC revision 384, Tue Oct 5 21:54:33 2010 UTC
# Line 36  Line 36 
36      {      {
37          if (inside (pos,F)) {          if (inside (pos,F)) {
38             real val = F@pos;             real val = F@pos;
39             vec3 grad = (∇ F)@pos;             vec3 grad = ∇F@pos;
40             vec3 norm = grad/|grad|;             vec3 norm = grad/|grad|;
41             vec3 halfDir = (lightDir - dir)/|lightDir - dir|;             vec3 halfDir = (lightDir - dir)/|lightDir - dir|;
42             vec4 matRGBA = txf@[val];             vec4 matRGBA = txf@val;
43             vec3 matRGB = [matRGBA[0],matRGBA[1],matRGBA[2]];             vec3 matRGB = [matRGBA[0],matRGBA[1],matRGBA[2]];
44             real ldotn = dot(lightDir, norm);             real ldotn = dot(lightDir, norm);
45             real hdotn = dot(halfDir, norm);             real hdotn = dot(halfDir, norm);

Legend:
Removed from v.249  
changed lines
  Added in v.384

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