/[libvob]/libvob/vob/fillet/light3d.py
ViewVC logotype

Diff of /libvob/vob/fillet/light3d.py

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

revision 1.15 by tjl, Sat Jun 28 14:35:39 2003 UTC revision 1.16 by tjl, Sun Jun 29 08:21:52 2003 UTC
# Line 71  void main( Line 71  void main(
71      // tc.y += (1-768/1024.0);      // tc.y += (1-768/1024.0);
72      float2 tc = wpos.xy;      float2 tc = wpos.xy;
73    
74      float d = texRECT(tex0, tc).x;      float4 dotvec = {
75                1./(256*256)
76                ,
77                1./(256*256*256)
78                ,
79                0
80                ,
81                1./256
82                };
83    
84        float4 d = texRECT(tex0, tc);
85    
86        float de = dot(d, dotvec);
87    
88  //    float d1 = tex2D(tex0, tc + float2(0,2/1024.0)).x;  //    float d1 = tex2D(tex0, tc + float2(0,2/1024.0)).x;
89  //    float d2 = tex2D(tex0, tc + float2(0,-2/1024.0)).x;  //    float d2 = tex2D(tex0, tc + float2(0,-2/1024.0)).x;
90  //    float d3 = tex2D(tex0, tc + float2(2/1024.0,0)).x;  //    float d3 = tex2D(tex0, tc + float2(2/1024.0,0)).x;
# Line 98  void main( Line 111  void main(
111  */  */
112      float4 color;      float4 color;
113      color.xyz = d;      color.xyz = d;
114      color.xyz = (d-.53) * 40 + .5;      color.xyz = (de-.00199) * 1000;
115      // 10000 *abs(d1-d);      // 10000 *abs(d1-d);
116      /*      /*
117      float f = max(      float f = max(

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26