1234567891011121314151617181920212223242526272829 |
- uniform mat4 u_mvpMatrix;
- uniform vec3 texSize;
- in vec4 a_position;
- in vec3 a_texCoord;
- out vec2 leftTop;
- out vec2 edgePos;
- out vec4 misc;
- out vec2 videoCoord;
- void main()
- {
- gl_Position = u_mvpMatrix * a_position;
- edgePos = a_texCoord.xy * vec2(1.0, 2.0);
- vec2 texStep = 1.0 / texSize.xy;
- leftTop = a_texCoord.xy - texStep;
- vec2 subPixelPos = edgePos * texSize.xy * vec2(1.0, 0.5);
- vec2 texStep2 = 2.0 * texStep;
- misc = vec4(subPixelPos, texStep2);
- #if SUPERIMPOSE
- videoCoord = a_texCoord.xz;
- #endif
- }
|