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; |
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( |