Home My Page Projects Code Snippets Project Openings diderot

# SCM Repository

[diderot] Diff of /branches/pure-cfg/test/vr-lite-cam.diderot
 [diderot] / branches / pure-cfg / test / vr-lite-cam.diderot

# Diff of /branches/pure-cfg/test/vr-lite-cam.diderot

revision 696, Fri Mar 25 18:29:12 2011 UTC revision 704, Tue Mar 29 17:46:40 2011 UTC
# Line 55  Line 55
55  // would make this transform to world-space less awkward; would be  // would make this transform to world-space less awkward; would be
56  // lightVspDir[0]*camU + lightVspDir[1]*camV + lightVspDir[2]*camN  // lightVspDir[0]*camU + lightVspDir[1]*camV + lightVspDir[2]*camN
57  // OR, we could create and apply a view-to-world matrix transform  // OR, we could create and apply a view-to-world matrix transform
58    //vec3 tmp2 = lightVspDir[0]*camU + lightVspDir[1]*camV + lightVspDir[2]*camN;
59  vec3 tmp2 = (  dot(lightVspDir,[1.0,0.0,0.0])*camU  vec3 tmp2 = (  dot(lightVspDir,[1.0,0.0,0.0])*camU
60               + dot(lightVspDir,[0.0,1.0,0.0])*camV               + dot(lightVspDir,[0.0,1.0,0.0])*camV
61               + dot(lightVspDir,[0.0,0.0,1.0])*camN);               + dot(lightVspDir,[0.0,0.0,1.0])*camN);
# Line 66  Line 67
67  real phongSp = 30.0;  real phongSp = 30.0;
68
70    //field#4(3)[] F = img ⊛ bspln5;
71  //field#2(3)[] F = img ⊛ bspln3;  //field#2(3)[] F = img ⊛ bspln3;
72  field#2(3)[] F = img ⊛ bspln3;  field#1(3)[] F = img ⊛ ctmr;
// HEY (BUG): ctmr Catmull-Rom is C1 but not C2 continuous
//field#2(3)[] F = img ⊛ ctmr;
73  //field#0(3)[] F = img ⊛ tent;  //field#0(3)[] F = img ⊛ tent;
74
75  strand RayCast (int ui, int vi)  strand RayCast (int ui, int vi)
# Line 93  Line 93
93            // ########## BEGIN per-sample code            // ########## BEGIN per-sample code
94            real val = F@rayPos;            real val = F@rayPos;