comparison shaders/default.f.glsl @ 1406:5e4a2ea8219b

Minor simplification of default fragment shader
author Michael Pavone <pavone@retrodev.com>
date Sat, 17 Jun 2017 17:43:47 -0700
parents ee19270495e8
children 957325c990d5
comparison
equal deleted inserted replaced
1405:ee19270495e8 1406:5e4a2ea8219b
6 6
7 void main() 7 void main()
8 { 8 {
9 vec2 modifiedCoord = vec2(texcoord.x, (floor(texcoord.y * 512.0) + 0.5)/512.0); 9 vec2 modifiedCoord = vec2(texcoord.x, (floor(texcoord.y * 512.0) + 0.5)/512.0);
10 gl_FragColor = mix( 10 gl_FragColor = mix(
11 texture2D(textures[1], modifiedCoord),
11 texture2D(textures[0], modifiedCoord), 12 texture2D(textures[0], modifiedCoord),
12 texture2D(textures[1], modifiedCoord), 13 (sin(texcoord.y * 1024.0 * 3.14159265359) + 1.0) * 0.5
13 (sin((texcoord.y * 1024.0 + 1.0)* 3.14159265359) + 1.0) * 0.5
14 ); 14 );
15 } 15 }