12345678910111213141516171819202122232425262728293031323334353637383940 |
- #version 150
- uniform sampler2D source[];
- uniform vec2 targetSize;
- uniform vec4 sourceSize[];
- uniform int phase;
- in Vertex {
- vec2 texCoord;
- };
- out vec4 fragColor;
- #define percent 0.0
- void main()
- {
- vec4 res = texture(source[0], texCoord);
- float y = 0.0;
-
- if (sourceSize[0].y > 400.0) y = sourceSize[0].y * texCoord.y + phase;
- else
- y = 2.00001 * sourceSize[0].y * texCoord.y;
- if (mod(y, 2.0) > 0.99999) fragColor = res;
- else
- fragColor = vec4(percent) * res;
- }
|