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

SCM Repository

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

Diff of /trunk/test/vr-phong.diderot

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

revision 248, Fri Aug 6 20:40:57 2010 UTC revision 249, Fri Aug 6 21:37:04 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 = (D 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];

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

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