From f3d96b0d61abb5fc3a0a1b5b98fa0df84abe25c1 Mon Sep 17 00:00:00 2001 From: Marcus Wanners Date: Sun, 9 Aug 2009 21:53:42 +0000 Subject: [PATCH] ... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3955 8ced0084-cf51-0410-be5f-012b33b47a6e --- Data/User/Shaders/acidmetal.txt | 16 --------- Data/User/Shaders/acidtrip.txt | 6 ---- Data/User/Shaders/acidtrip2.txt | 6 ---- Data/User/Shaders/auto_toon.txt | 16 --------- Data/User/Shaders/bad_bloom.txt | 38 -------------------- Data/User/Shaders/chrismas.txt | 19 ---------- Data/User/Shaders/color_swap_1.txt | 7 ---- Data/User/Shaders/cool1.txt | 22 ------------ Data/User/Shaders/emboss.txt | 19 ---------- Data/User/Shaders/fire.txt | 39 -------------------- Data/User/Shaders/fire2.txt | 15 -------- Data/User/Shaders/firewater.txt | 17 --------- Data/User/Shaders/grayscale.txt | 8 ----- Data/User/Shaders/grayscale2.txt | 9 ----- Data/User/Shaders/invert.txt | 7 ---- Data/User/Shaders/invert_blue.txt | 7 ---- Data/User/Shaders/invertedoutline.txt | 17 --------- Data/User/Shaders/mad_world.txt | 17 --------- Data/User/Shaders/nightvision.txt | 14 -------- Data/User/Shaders/nightvision2.txt | 51 --------------------------- Data/User/Shaders/posterize.txt | 26 -------------- Data/User/Shaders/spookey1.txt | 20 ----------- Data/User/Shaders/spookey2.txt | 22 ------------ Data/User/Shaders/stereoscopic.txt | 27 -------------- Data/User/Shaders/stereoscopic2.txt | 26 -------------- Data/User/Shaders/sunset.txt | 7 ---- Data/User/Shaders/toxic.txt | 22 ------------ 27 files changed, 500 deletions(-) delete mode 100644 Data/User/Shaders/acidmetal.txt delete mode 100644 Data/User/Shaders/acidtrip.txt delete mode 100644 Data/User/Shaders/acidtrip2.txt delete mode 100644 Data/User/Shaders/auto_toon.txt delete mode 100644 Data/User/Shaders/bad_bloom.txt delete mode 100644 Data/User/Shaders/chrismas.txt delete mode 100644 Data/User/Shaders/color_swap_1.txt delete mode 100644 Data/User/Shaders/cool1.txt delete mode 100644 Data/User/Shaders/emboss.txt delete mode 100644 Data/User/Shaders/fire.txt delete mode 100644 Data/User/Shaders/fire2.txt delete mode 100644 Data/User/Shaders/firewater.txt delete mode 100644 Data/User/Shaders/grayscale.txt delete mode 100644 Data/User/Shaders/grayscale2.txt delete mode 100644 Data/User/Shaders/invert.txt delete mode 100644 Data/User/Shaders/invert_blue.txt delete mode 100644 Data/User/Shaders/invertedoutline.txt delete mode 100644 Data/User/Shaders/mad_world.txt delete mode 100644 Data/User/Shaders/nightvision.txt delete mode 100644 Data/User/Shaders/nightvision2.txt delete mode 100644 Data/User/Shaders/posterize.txt delete mode 100644 Data/User/Shaders/spookey1.txt delete mode 100644 Data/User/Shaders/spookey2.txt delete mode 100644 Data/User/Shaders/stereoscopic.txt delete mode 100644 Data/User/Shaders/stereoscopic2.txt delete mode 100644 Data/User/Shaders/sunset.txt delete mode 100644 Data/User/Shaders/toxic.txt diff --git a/Data/User/Shaders/acidmetal.txt b/Data/User/Shaders/acidmetal.txt deleted file mode 100644 index 7f479ca274..0000000000 --- a/Data/User/Shaders/acidmetal.txt +++ /dev/null @@ -1,16 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float red = 0.0; - float blue = 0.0; - - if (c0.r > 0.25 && c0.b > 0.25) - { - blue = c0.b; - red = c0.r; - } - - ocol0 = float4(red, c0.g, blue, 1.0); -} \ No newline at end of file diff --git a/Data/User/Shaders/acidtrip.txt b/Data/User/Shaders/acidtrip.txt deleted file mode 100644 index a5abb48d8a..0000000000 --- a/Data/User/Shaders/acidtrip.txt +++ /dev/null @@ -1,6 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - ocol0 = (texRECT(samp0, uv0+1).rgba - texRECT(samp0, uv0-1).rgba)*8; -} diff --git a/Data/User/Shaders/acidtrip2.txt b/Data/User/Shaders/acidtrip2.txt deleted file mode 100644 index 6673879589..0000000000 --- a/Data/User/Shaders/acidtrip2.txt +++ /dev/null @@ -1,6 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - ocol0 = texRECT(samp0, uv0+1).rgba * 1.3 * abs(texRECT(samp0, uv0+1).rgba - texRECT(samp0, uv0-1).rgba)*8; -} diff --git a/Data/User/Shaders/auto_toon.txt b/Data/User/Shaders/auto_toon.txt deleted file mode 100644 index 7c7e94387d..0000000000 --- a/Data/User/Shaders/auto_toon.txt +++ /dev/null @@ -1,16 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 to_gray = float4(0.3,0.59,0.11,0); - float x1 = dot(to_gray, texRECT(samp0, uv0+float2(1,1))); - float x0 = dot(to_gray, texRECT(samp0, uv0+float2(-1,-1))); - float x3 = dot(to_gray, texRECT(samp0, uv0+float2(1,-1))); - float x2 = dot(to_gray, texRECT(samp0, uv0+float2(-1,1))); - float edge = (x1 - x0) * (x1 - x0); - float edge2 = (x3 - x2) * (x3 - x2); - edge += edge2; - float4 color = texRECT(samp0, uv0).rgba; - - ocol0 = max(color - float4(edge, edge, edge, edge) * 12, float4(0,0,0,0)); -} diff --git a/Data/User/Shaders/bad_bloom.txt b/Data/User/Shaders/bad_bloom.txt deleted file mode 100644 index 1c73998f00..0000000000 --- a/Data/User/Shaders/bad_bloom.txt +++ /dev/null @@ -1,38 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0, in float2 uv1 : TEXCOORD1) -{ - float4 c_center = texRECT(samp0, uv0.xy).rgba; - - float4 bloom_sum = float4(0.0, 0.0, 0.0, 0.0); - uv0 += float2(0.3, 0.3); - float radius1 = 1.3; - bloom_sum += texRECT(samp0, uv0 + float2(-1.5, -1.5) * radius1); - bloom_sum += texRECT(samp0, uv0 + float2(-2.5, 0) * radius1); - bloom_sum += texRECT(samp0, uv0 + float2(-1.5, 1.5) * radius1); - bloom_sum += texRECT(samp0, uv0 + float2(0, 2.5) * radius1); - bloom_sum += texRECT(samp0, uv0 + float2(1.5, 1.5) * radius1); - bloom_sum += texRECT(samp0, uv0 + float2(2.5, 0) * radius1); - bloom_sum += texRECT(samp0, uv0 + float2(1.5, -1.5) * radius1); - bloom_sum += texRECT(samp0, uv0 + float2(0, -2.5) * radius1); - - float radius2 = 4.6; - bloom_sum += texRECT(samp0, uv0 + float2(-1.5, -1.5) * radius2); - bloom_sum += texRECT(samp0, uv0 + float2(-2.5, 0) * radius2); - bloom_sum += texRECT(samp0, uv0 + float2(-1.5, 1.5) * radius2); - bloom_sum += texRECT(samp0, uv0 + float2(0, 2.5) * radius2); - bloom_sum += texRECT(samp0, uv0 + float2(1.5, 1.5) * radius2); - bloom_sum += texRECT(samp0, uv0 + float2(2.5, 0) * radius2); - bloom_sum += texRECT(samp0, uv0 + float2(1.5, -1.5) * radius2); - bloom_sum += texRECT(samp0, uv0 + float2(0, -2.5) * radius2); - - bloom_sum *= 0.07; - bloom_sum -= float4(0.3, 0.3, 0.3, 0.3); - bloom_sum = max(bloom_sum, float4(0,0,0,0)); - - float2 vpos = (uv1 - float2(.5, .5)) * 2; - float dist = (dot(vpos, vpos)); - dist = 1 - 0.4*dist; - - ocol0 = (c_center * 0.7 + bloom_sum) * dist; -} diff --git a/Data/User/Shaders/chrismas.txt b/Data/User/Shaders/chrismas.txt deleted file mode 100644 index 6de668b2db..0000000000 --- a/Data/User/Shaders/chrismas.txt +++ /dev/null @@ -1,19 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float red = 0.0; - float green = 0.0; - - if (c0.r < 0.50 || c0.b > 0.5) - { - green = c0.g + (c0.b / 2); - } - else - { - red = c0.r + (c0.b / 2); - } - - ocol0 = float4(red, green, 0.0, 1.0); -} \ No newline at end of file diff --git a/Data/User/Shaders/color_swap_1.txt b/Data/User/Shaders/color_swap_1.txt deleted file mode 100644 index 68debd6837..0000000000 --- a/Data/User/Shaders/color_swap_1.txt +++ /dev/null @@ -1,7 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - ocol0 = float4(c0.g, c0.b,c0.r, 1.0); -} \ No newline at end of file diff --git a/Data/User/Shaders/cool1.txt b/Data/User/Shaders/cool1.txt deleted file mode 100644 index 66de9c4d38..0000000000 --- a/Data/User/Shaders/cool1.txt +++ /dev/null @@ -1,22 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float red = 0.0; - float green = 0.0; - float blue = 0.0; - - if (c0.r < 0.50 || c0.b > 0.5) - { - blue = c0.r + (c0.b / 2); - red = c0.g + (c0.b / 2); - } - else - { - blue = c0.r + (c0.b / 2); - green = c0.r + (c0.b / 2); - } - - ocol0 = float4(red, green, blue, 1.0); -} \ No newline at end of file diff --git a/Data/User/Shaders/emboss.txt b/Data/User/Shaders/emboss.txt deleted file mode 100644 index 62850dff44..0000000000 --- a/Data/User/Shaders/emboss.txt +++ /dev/null @@ -1,19 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float4 c1 = texRECT(samp0, uv0 + float2(5,5)).rgba; - float y = (0.222 * c1.r) + (0.707 * c1.g) + (0.071 * c1.b); - float y2 = ((0.222 * c0.r) + (0.707 * c0.g) + (0.071 * c0.b)) / 3; - float red = c0.r; - float green = c0.g; - float blue = c0.b; - float alpha = c0.a; - - red = y2 + (1 - y); - green = y2 + (1 - y); - blue = y2 + (1 - y); - - ocol0 = float4(red, green, blue, alpha); -} \ No newline at end of file diff --git a/Data/User/Shaders/fire.txt b/Data/User/Shaders/fire.txt deleted file mode 100644 index 6094307f40..0000000000 --- a/Data/User/Shaders/fire.txt +++ /dev/null @@ -1,39 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float red = 0.0; - float green = 0.0; - float blue = 0.0; - - red = c0.r; - - - if (c0.r > 0.0) - { - if (c0.g > c0.r) - { - green = (c0.g - (c0.g - c0.r)) / 3; - } - } - - if (c0.b > 0.0 && c0.r < 0.25) - { - red = c0.b; - green = c0.b / 3; - } - - if (c0.g > 0.0 && c0.r < 0.25) - { - red = c0.g; - green = c0.g / 3; - } - - if (((c0.r + c0.g + c0.b) / 3) > 0.9) - { - green = c0.r / 3; - } - - ocol0 = float4(red, green, blue, 1.0); -} \ No newline at end of file diff --git a/Data/User/Shaders/fire2.txt b/Data/User/Shaders/fire2.txt deleted file mode 100644 index 3f7c09e3db..0000000000 --- a/Data/User/Shaders/fire2.txt +++ /dev/null @@ -1,15 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float red = 0.0; - float green = 0.0; - float blue = 0.0; - float avg = (c0.r + c0.g + c0.b) / 3; - - red = c0.r + (c0.g / 2) + (c0.b / 3); - green = c0.r / 3; - - ocol0 = float4(red, green, blue, 1.0); -} \ No newline at end of file diff --git a/Data/User/Shaders/firewater.txt b/Data/User/Shaders/firewater.txt deleted file mode 100644 index c610f40d45..0000000000 --- a/Data/User/Shaders/firewater.txt +++ /dev/null @@ -1,17 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float4 c1 = texRECT(samp0, uv0 + float2(1,1)).rgba; - float4 c2 = texRECT(samp0, uv0 + float2(-1,-1)).rgba; - float red = c0.r; - float green = c0.g; - float blue = c0.b; - float alpha = c0.a; - - red = c0.r - c1.b; - blue = c0.b - c2.r + (c0.g - c0.r); - - ocol0 = float4(red, 0.0, blue, alpha); -} \ No newline at end of file diff --git a/Data/User/Shaders/grayscale.txt b/Data/User/Shaders/grayscale.txt deleted file mode 100644 index 85fee9e546..0000000000 --- a/Data/User/Shaders/grayscale.txt +++ /dev/null @@ -1,8 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float avg = (c0.r + c0.g + c0.b) / 3.0; - ocol0 = float4(avg, avg, avg, c0.a); -} diff --git a/Data/User/Shaders/grayscale2.txt b/Data/User/Shaders/grayscale2.txt deleted file mode 100644 index bf179dcbbb..0000000000 --- a/Data/User/Shaders/grayscale2.txt +++ /dev/null @@ -1,9 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - // Info: http://www.oreillynet.com/cs/user/view/cs_msg/8691 - float avg = (0.222 * c0.r) + (0.707 * c0.g) + (0.071 * c0.b); - ocol0 = float4(avg, avg, avg, c0.a); -} diff --git a/Data/User/Shaders/invert.txt b/Data/User/Shaders/invert.txt deleted file mode 100644 index efd57def22..0000000000 --- a/Data/User/Shaders/invert.txt +++ /dev/null @@ -1,7 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - ocol0 = float4(1.0, 1.0, 1.0, 1.0) - c0; -} diff --git a/Data/User/Shaders/invert_blue.txt b/Data/User/Shaders/invert_blue.txt deleted file mode 100644 index 7d6cf651ca..0000000000 --- a/Data/User/Shaders/invert_blue.txt +++ /dev/null @@ -1,7 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - ocol0 = float4(0.0, 0.0, 0.7, 1.0) - c0; -} \ No newline at end of file diff --git a/Data/User/Shaders/invertedoutline.txt b/Data/User/Shaders/invertedoutline.txt deleted file mode 100644 index 72e835ac41..0000000000 --- a/Data/User/Shaders/invertedoutline.txt +++ /dev/null @@ -1,17 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float4 c1 = texRECT(samp0, uv0 + float2(3,3)).rgba; - float red = c0.r; - float green = c0.g; - float blue = c0.b; - float alpha = c0.a; - - red = c0.r - c1.r; - green = c0.g - c1.g; - blue = c0.b - c1.b; - - ocol0 = float4(red, green, blue, alpha); -} \ No newline at end of file diff --git a/Data/User/Shaders/mad_world.txt b/Data/User/Shaders/mad_world.txt deleted file mode 100644 index 1f7184fe67..0000000000 --- a/Data/User/Shaders/mad_world.txt +++ /dev/null @@ -1,17 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 emboss = (texRECT(samp0, uv0+1).rgba - texRECT(samp0, uv0-1).rgba)*2.0f; - emboss -= (texRECT(samp0, uv0+float2(1,-1)).rgba - texRECT(samp0, uv0+float2(-1,1)).rgba); - float4 color = texRECT(samp0, uv0).rgba; - if (color.r > 0.8 && color.b + color.b < 0.2) - ocol0 = float4(1,0,0,0); - else { - color += emboss; - if (dot(color.rgb, float3(0.3, 0.5, 0.2)) > 0.5) - ocol0 = float4(1,1,1,1); - else - ocol0 = float4(0,0,0,0); - } -} \ No newline at end of file diff --git a/Data/User/Shaders/nightvision.txt b/Data/User/Shaders/nightvision.txt deleted file mode 100644 index db354d0b81..0000000000 --- a/Data/User/Shaders/nightvision.txt +++ /dev/null @@ -1,14 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float green = c0.g; - - if (c0.g < 0.50) - { - green = c0.r + c0.b; - } - - ocol0 = float4(0.0, green, 0.0, 1.0); -} \ No newline at end of file diff --git a/Data/User/Shaders/nightvision2.txt b/Data/User/Shaders/nightvision2.txt deleted file mode 100644 index e0e75718ee..0000000000 --- a/Data/User/Shaders/nightvision2.txt +++ /dev/null @@ -1,51 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - //variables - int internalresolution = 1282; //for 800x600; should be changed for other settings. - float4 c0 = texRECT(samp0, uv0).rgba; - //blur - float4 blurtotal = float4(0, 0, 0, 0); - float blursize = 1.5; - blurtotal += texRECT(samp0, uv0 + float2(-blursize, -blursize)); - blurtotal += texRECT(samp0, uv0 + float2(-blursize, blursize)); - blurtotal += texRECT(samp0, uv0 + float2( blursize, -blursize)); - blurtotal += texRECT(samp0, uv0 + float2( blursize, blursize)); - blurtotal += texRECT(samp0, uv0 + float2(-blursize, 0)); - blurtotal += texRECT(samp0, uv0 + float2( blursize, 0)); - blurtotal += texRECT(samp0, uv0 + float2( 0, -blursize)); - blurtotal += texRECT(samp0, uv0 + float2( 0, blursize)); - blurtotal *= 0.125; - c0 = blurtotal; - //greyscale - float grey = ((0.3 * c0.r) + (0.4 * c0.g) + (0.3 * c0.b)); - // brighten - grey = grey * 0.5 + 0.7; - // darken edges - float x = uv0[0]; - float y = uv0[1]; - if (x > internalresolution/2) x = internalresolution-x; - if (y > internalresolution/2) y = internalresolution-y; - if (x > internalresolution/2*0.95) x = internalresolution/2*0.95; - if (y > internalresolution/2*0.95) y = internalresolution/2*0.95; - x = -x+641; - y = -y+641; - /*****inline square root routines*****/ - // bit of a performance bottleneck. - // neccessary to make the darkened area rounded - // instead of rhombus-shaped. - float sqrt=x/10; - while((sqrt*sqrt) < x) sqrt+=0.1; - x = sqrt; - sqrt=y/10; - while((sqrt*sqrt) < y) sqrt+=0.1; - y = sqrt; - /*****end of inline square root routines*****/ - x *= 2; - y *= 2; - grey -= x/200; - grey -= y/200; - // output - ocol0 = float4(0, grey, 0, 1.0); -} \ No newline at end of file diff --git a/Data/User/Shaders/posterize.txt b/Data/User/Shaders/posterize.txt deleted file mode 100644 index fca009b145..0000000000 --- a/Data/User/Shaders/posterize.txt +++ /dev/null @@ -1,26 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float red = 0.0; - float green = 0.0; - float blue = 0.0; - - if (c0.r > 0.25) - { - red = c0.r; - } - - if (c0.g > 0.25) - { - green = c0.g; - } - - if (c0.b > 0.25) - { - blue = c0.b; - } - - ocol0 = float4(red, green, blue, 1.0); -} \ No newline at end of file diff --git a/Data/User/Shaders/spookey1.txt b/Data/User/Shaders/spookey1.txt deleted file mode 100644 index f0cde83b55..0000000000 --- a/Data/User/Shaders/spookey1.txt +++ /dev/null @@ -1,20 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float red = 0.0; - float blue = 0.0; - - if (c0.r < 0.50 || c0.b > 0.5) - { - red = c0.g + (c0.b / 2); - } - else - { - red = c0.g + (c0.b / 2); - blue = c0.r + (c0.b / 2); - } - - ocol0 = float4(red, 0.0, blue, 1.0); -} \ No newline at end of file diff --git a/Data/User/Shaders/spookey2.txt b/Data/User/Shaders/spookey2.txt deleted file mode 100644 index 747d236427..0000000000 --- a/Data/User/Shaders/spookey2.txt +++ /dev/null @@ -1,22 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float red = 0.0; - float green = 0.0; - float blue = 0.0; - - if (c0.r < 0.50 || c0.b > 0.5) - { - red = c0.g + (c0.b / 2); - } - else - { - red = c0.g + (c0.b / 2); - blue = c0.r + (c0.b / 2); - green = c0.r + (c0.b / 2); - } - - ocol0 = float4(red, green, blue, 1.0); -} \ No newline at end of file diff --git a/Data/User/Shaders/stereoscopic.txt b/Data/User/Shaders/stereoscopic.txt deleted file mode 100644 index 254db332c0..0000000000 --- a/Data/User/Shaders/stereoscopic.txt +++ /dev/null @@ -1,27 +0,0 @@ -// Omega's 3D Stereoscopic filtering -// TODO: Need depth info! - -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; // Source Color - float sep = 5; - float red = c0.r; - float green = c0.g; - float blue = c0.b; - - - // Red Eye (Red) - float4 c1 = texRECT(samp0, uv0 + float2(sep,0)).rgba; - red = max(c0.r, c1.r); - - // Right Eye (Cyan) - float4 c2 = texRECT(samp0, uv0 + float2(-sep,0)).rgba; - float cyan = (c2.g + c2.b) / 2; - green = max(c0.g, cyan); - blue = max(c0.b, cyan); - - - ocol0 = float4(red, green, blue, c0.a); -} \ No newline at end of file diff --git a/Data/User/Shaders/stereoscopic2.txt b/Data/User/Shaders/stereoscopic2.txt deleted file mode 100644 index f694aec2e6..0000000000 --- a/Data/User/Shaders/stereoscopic2.txt +++ /dev/null @@ -1,26 +0,0 @@ -// Omega's 3D Stereoscopic filtering (Amber/Blue) -// TODO: Need depth info! - -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; // Source Color - float sep = 5; - float red = c0.r; - float green = c0.g; - float blue = c0.b; - - // Left Eye (Amber) - float4 c2 = texRECT(samp0, uv0 + float2(sep,0)).rgba; - float amber = (c2.r + c2.g) / 2; - red = max(c0.r, amber); - green = max(c0.g, amber); - - // Right Eye (Blue) - float4 c1 = texRECT(samp0, uv0 + float2(-sep,0)).rgba; - blue = max(c0.b, c1.b); - - - ocol0 = float4(red, green, blue, c0.a); -} \ No newline at end of file diff --git a/Data/User/Shaders/sunset.txt b/Data/User/Shaders/sunset.txt deleted file mode 100644 index e92562461e..0000000000 --- a/Data/User/Shaders/sunset.txt +++ /dev/null @@ -1,7 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - ocol0 = float4(c0.b, c0.g, c0.r, c0.a); -} diff --git a/Data/User/Shaders/toxic.txt b/Data/User/Shaders/toxic.txt deleted file mode 100644 index 81205ed0f8..0000000000 --- a/Data/User/Shaders/toxic.txt +++ /dev/null @@ -1,22 +0,0 @@ -uniform samplerRECT samp0 : register(s0); - -void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) -{ - float4 c0 = texRECT(samp0, uv0).rgba; - float red = 0.0; - float green = 0.0; - float blue = 0.0; - - if (c0.r < 0.50 || c0.b > 0.5) - { - blue = c0.r + (c0.b / 2); - red = c0.g + (c0.b / 2); - } - else - { - red = c0.g + (c0.b / 2); - green = c0.r + (c0.b / 2); - } - - ocol0 = float4(red, green, blue, 1.0); -} \ No newline at end of file