Last change
on this file since 12319 was
12115,
checked in by wiesep, 6 years ago
|
Changed folder structure, deletet some unused files and cleaned up code
|
File size:
418 bytes
|
Line | |
---|
1 | sampler2D RT: register(s0); |
---|
2 | |
---|
3 | float4 sharpenEdges_fp( float4 pos : POSITION, float2 iTexCoord: TEXCOORD0, uniform float2 vTexelSize) : COLOR |
---|
4 | { |
---|
5 | |
---|
6 | float2 usedTexelED[8] = { |
---|
7 | -1, -1, |
---|
8 | 0, -1, |
---|
9 | 1, -1, |
---|
10 | -1, 0, |
---|
11 | 1, 0, |
---|
12 | -1, 1, |
---|
13 | 0, 1, |
---|
14 | 1, 1, |
---|
15 | }; |
---|
16 | |
---|
17 | float4 cAvgColor= 9 * tex2D (RT, iTexCoord); |
---|
18 | |
---|
19 | for(int t=0; t<8; t++) |
---|
20 | cAvgColor -= tex2D(RT, iTexCoord + vTexelSize * usedTexelED[t]); |
---|
21 | |
---|
22 | return cAvgColor; |
---|
23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.