SCM Repository
[diderot] / trunk / test / vr-phong.diderot |
Diff of /trunk/test/vr-phong.diderot
Parent Directory
|
Revision Log
|
Patch
revision 54, Tue Apr 20 15:58:46 2010 UTC | revision 55, Tue Apr 20 15:59:05 2010 UTC | |
---|---|---|
# | Line 36 | Line 36 |
36 | real val = F@pos; | real val = F@pos; |
37 | vec3 grad = (D F)@pos; | vec3 grad = (D F)@pos; |
38 | vec3 norm = grad/|grad|; | vec3 norm = grad/|grad|; |
39 | vec3 half = lightDir - dir/|lightDir - dir|; | vec3 half = (lightDir - dir)/|lightDir - dir|; |
40 | vec4 matRGBA = txf@val; | vec4 matRGBA = txf@val; |
41 | vec3 matRGB = (matRGBA[0],matRGBA[1],matRGBA[2]); | vec3 matRGB = (matRGBA[0],matRGBA[1],matRGBA[2]); |
42 | real ldotn = dot(lightDir,norm); | real ldotn = dot(lightDir,norm); |
|
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |