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

SCM Repository

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

Diff of /branches/charisee/test/vr-phong.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 33  Line 33 
33      update      update
34      {      {
35          if (inside (pos,F)) {          if (inside (pos,F)) {
36             real val = F@pos;             real val = F(pos);
37             vec3 norm = normalize(-∇F@pos);             vec3 norm = normalize(-∇F(pos));
38             vec3 halfDir = normalize(lightDir - dir);             vec3 halfDir = normalize(lightDir - dir);
39             vec4 matRGBA = txf@val;             vec4 matRGBA = txf(val);
40             vec3 matRGB = [matRGBA[0],matRGBA[1],matRGBA[2]];             vec3 matRGB = [matRGBA[0],matRGBA[1],matRGBA[2]];
41             real ldotn = lightDir • norm;             real ldotn = lightDir • norm;
42             real hdotn = halfDir • norm;             real hdotn = halfDir • 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