Minor shader cleanup, fix a build error (see #4160)

This commit is contained in:
Henrik Rydgard committed 2013-10-13 18:45:16 +02:00
1 parent 40ee00bf46
commit 5b9bfd32f7
6 files changed
+17 -13

No files matched your search

File renamed without changes.
File renamed without changes.
+5 -5
View File
@@ -5,7 +5,7 @@ Author=nVidia
Fragment=fxaa.fsh
Vertex=fxaa.vsh
[Natural]
Name=Natural Look
Name=Natural Colors
Fragment=natural.fsh
Vertex=natural.vsh
[Grayscale]
@@ -25,9 +25,9 @@ Fragment=inversecolors.fsh
Vertex=fxaa.vsh
[Scanlines]
Name=Scanlines
Fragment=Scanlines.fsh
Fragment=scanlines.fsh
Vertex=fxaa.vsh
[Cartoon]
Name=Advance Cartoon shader
Fragment=Cartoon shader.fsh
Vertex=Cartoon shader.vsh
Name=Cartoon
Fragment=cartoon.fsh
Vertex=cartoon.vsh
+4
View File
@@ -1,6 +1,10 @@
// Natural shader, GLSL code adapted from:
// http://forums.ngemu.com/showthread.php?t=76098
#ifdef GL_ES
precision mediump float;
precision mediump int;
#endif
uniform sampler2D sampler0;
varying vec4 v_texcoord0;
+7 -7
View File
@@ -8,13 +8,13 @@ varying vec4 v_texcoord0;
varying vec4 v_texcoord1;
varying vec4 v_texcoord2;
varying vec4 v_texcoord3;
void main()
{
gl_Position=u_viewproj * a_position;
v_texcoord0=a_texcoord0.xyxy+vec4(-0.5,-0.5,-1.5,-1.5)*u_texcoordDelta.xyxy;
v_texcoord1=a_texcoord0.xyxy+vec4( 0.5,-0.5, 1.5,-1.5)*u_texcoordDelta.xyxy;
v_texcoord2=a_texcoord0.xyxy+vec4(-0.5, 0.5,-1.5, 1.5)*u_texcoordDelta.xyxy;
v_texcoord3=a_texcoord0.xyxy+vec4( 0.5, 0.5, 1.5, 1.5)*u_texcoordDelta.xyxy;
gl_Position=u_viewproj * a_position;
v_texcoord0=a_texcoord0.xyxy+vec4(-0.5,-0.5,-1.5,-1.5)*u_texcoordDelta.xyxy;
v_texcoord1=a_texcoord0.xyxy+vec4( 0.5,-0.5, 1.5,-1.5)*u_texcoordDelta.xyxy;
v_texcoord2=a_texcoord0.xyxy+vec4(-0.5, 0.5,-1.5, 1.5)*u_texcoordDelta.xyxy;
v_texcoord3=a_texcoord0.xyxy+vec4( 0.5, 0.5, 1.5, 1.5)*u_texcoordDelta.xyxy;
}
+1 -1
View File
@@ -1,4 +1,4 @@
// Simple false color shader
// Simple vignette shader - darker towards the corners like in the unprocessed output of a real camera.
#ifdef GL_ES
precision mediump float;