summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFXVideo
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-11-18 18:15:59 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-11-18 18:15:59 +0000
commit065ccce6e919353d1e746057521e8e317b9acf12 (patch)
treed08f773fe1d980faf8ca88c445da5b1b1c919874 /macosx/plugins/DFXVideo
parentadc29a23861e66c104fb411e67e04019c8888ec9 (diff)
downloadpcsxr-065ccce6e919353d1e746057521e8e317b9acf12.tar.gz
Unix style EOL (thanks to darktjm);
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@81299 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/DFXVideo')
-rwxr-xr-xmacosx/plugins/DFXVideo/gpuPeteOGL2.slf70
-rwxr-xr-xmacosx/plugins/DFXVideo/gpuPeteOGL2.slv52
2 files changed, 61 insertions, 61 deletions
diff --git a/macosx/plugins/DFXVideo/gpuPeteOGL2.slf b/macosx/plugins/DFXVideo/gpuPeteOGL2.slf
index 08e77b18..c9c63d1a 100755
--- a/macosx/plugins/DFXVideo/gpuPeteOGL2.slf
+++ b/macosx/plugins/DFXVideo/gpuPeteOGL2.slf
@@ -1,35 +1,35 @@
-// ColoredStorybook shader
-// by guest(r)
-// License: GNU-GPL
-
-uniform sampler2D OGL2Texture;
-uniform sampler2D OGL2TMU1;
-
-void main()
-{
- vec3 paper = texture2D(OGL2TMU1, gl_TexCoord[6].zw).xyz;
- vec3 c00 = texture2D(OGL2Texture, gl_TexCoord[5].xy).xyz;
- vec3 c10 = texture2D(OGL2Texture, gl_TexCoord[1].xy).xyz;
- vec3 c20 = texture2D(OGL2Texture, gl_TexCoord[2].zw).xyz;
- vec3 c01 = texture2D(OGL2Texture, gl_TexCoord[3].xy).xyz;
- vec3 c11 = texture2D(OGL2Texture, gl_TexCoord[0].xy).xyz;
- vec3 c21 = texture2D(OGL2Texture, gl_TexCoord[4].xy).xyz;
- vec3 c02 = texture2D(OGL2Texture, gl_TexCoord[1].zw).xyz;
- vec3 c12 = texture2D(OGL2Texture, gl_TexCoord[2].xy).xyz;
- vec3 c22 = texture2D(OGL2Texture, gl_TexCoord[6].xy).xyz;
- vec3 dt = vec3(1.0,1.0,1.0);
-
- c11 = 0.25*(c11+0.5*(c10+c01+c12+c21)+0.25*(c02+c20+c00+c22));
-
- float d1=dot(abs(c00-c22),dt);
- float d2=dot(abs(c20-c02),dt);
- float hl=dot(abs(c01-c21),dt);
- float vl=dot(abs(c10-c12),dt);
-
- float d = 0.60*(d1+d2+hl+vl)/(dot(c11,dt)+0.5);
-
- d = 0.5*pow(d,0.5) + d;
- c11 = (1.0-0.6*d)*c11;
-
- gl_FragColor.xyz = mix(paper, c11, pow(max(min(d,1.1)-0.1,0.0),0.5));
-}
+// ColoredStorybook shader
+// by guest(r)
+// License: GNU-GPL
+
+uniform sampler2D OGL2Texture;
+uniform sampler2D OGL2TMU1;
+
+void main()
+{
+ vec3 paper = texture2D(OGL2TMU1, gl_TexCoord[6].zw).xyz;
+ vec3 c00 = texture2D(OGL2Texture, gl_TexCoord[5].xy).xyz;
+ vec3 c10 = texture2D(OGL2Texture, gl_TexCoord[1].xy).xyz;
+ vec3 c20 = texture2D(OGL2Texture, gl_TexCoord[2].zw).xyz;
+ vec3 c01 = texture2D(OGL2Texture, gl_TexCoord[3].xy).xyz;
+ vec3 c11 = texture2D(OGL2Texture, gl_TexCoord[0].xy).xyz;
+ vec3 c21 = texture2D(OGL2Texture, gl_TexCoord[4].xy).xyz;
+ vec3 c02 = texture2D(OGL2Texture, gl_TexCoord[1].zw).xyz;
+ vec3 c12 = texture2D(OGL2Texture, gl_TexCoord[2].xy).xyz;
+ vec3 c22 = texture2D(OGL2Texture, gl_TexCoord[6].xy).xyz;
+ vec3 dt = vec3(1.0,1.0,1.0);
+
+ c11 = 0.25*(c11+0.5*(c10+c01+c12+c21)+0.25*(c02+c20+c00+c22));
+
+ float d1=dot(abs(c00-c22),dt);
+ float d2=dot(abs(c20-c02),dt);
+ float hl=dot(abs(c01-c21),dt);
+ float vl=dot(abs(c10-c12),dt);
+
+ float d = 0.60*(d1+d2+hl+vl)/(dot(c11,dt)+0.5);
+
+ d = 0.5*pow(d,0.5) + d;
+ c11 = (1.0-0.6*d)*c11;
+
+ gl_FragColor.xyz = mix(paper, c11, pow(max(min(d,1.1)-0.1,0.0),0.5));
+}
diff --git a/macosx/plugins/DFXVideo/gpuPeteOGL2.slv b/macosx/plugins/DFXVideo/gpuPeteOGL2.slv
index 639eb41c..49f6bd27 100755
--- a/macosx/plugins/DFXVideo/gpuPeteOGL2.slv
+++ b/macosx/plugins/DFXVideo/gpuPeteOGL2.slv
@@ -1,26 +1,26 @@
-// by guest(r) - guest.r@gmail.com
-// license: GNU-GPL
-
-uniform vec4 OGL2Param;
-uniform vec4 OGL2Size;
-
-void main()
-{
-float x = (OGL2Size.x/2048.0)*OGL2Param.x;
-float y = (OGL2Size.y/1024.0)*OGL2Param.y;
-vec2 dg1 = vec2( x,y);
-vec2 dg2 = vec2(-x,y);
-vec2 dx = vec2(x,0.0);
-vec2 dy = vec2(0.0,y);
-gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
-gl_TexCoord[0] = gl_MultiTexCoord0;
-gl_TexCoord[6].zw= gl_MultiTexCoord1.xy;
-gl_TexCoord[1].xy = gl_TexCoord[0].xy - dy;
-gl_TexCoord[2].xy = gl_TexCoord[0].xy + dy;
-gl_TexCoord[3].xy = gl_TexCoord[0].xy - dx;
-gl_TexCoord[4].xy = gl_TexCoord[0].xy + dx;
-gl_TexCoord[5].xy = gl_TexCoord[0].xy - dg1;
-gl_TexCoord[6].xy = gl_TexCoord[0].xy + dg1;
-gl_TexCoord[1].zw = gl_TexCoord[0].xy - dg2;
-gl_TexCoord[2].zw = gl_TexCoord[0].xy + dg2;
-}
+// by guest(r) - guest.r@gmail.com
+// license: GNU-GPL
+
+uniform vec4 OGL2Param;
+uniform vec4 OGL2Size;
+
+void main()
+{
+float x = (OGL2Size.x/2048.0)*OGL2Param.x;
+float y = (OGL2Size.y/1024.0)*OGL2Param.y;
+vec2 dg1 = vec2( x,y);
+vec2 dg2 = vec2(-x,y);
+vec2 dx = vec2(x,0.0);
+vec2 dy = vec2(0.0,y);
+gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
+gl_TexCoord[0] = gl_MultiTexCoord0;
+gl_TexCoord[6].zw= gl_MultiTexCoord1.xy;
+gl_TexCoord[1].xy = gl_TexCoord[0].xy - dy;
+gl_TexCoord[2].xy = gl_TexCoord[0].xy + dy;
+gl_TexCoord[3].xy = gl_TexCoord[0].xy - dx;
+gl_TexCoord[4].xy = gl_TexCoord[0].xy + dx;
+gl_TexCoord[5].xy = gl_TexCoord[0].xy - dg1;
+gl_TexCoord[6].xy = gl_TexCoord[0].xy + dg1;
+gl_TexCoord[1].zw = gl_TexCoord[0].xy - dg2;
+gl_TexCoord[2].zw = gl_TexCoord[0].xy + dg2;
+}