slang-shaders/ntsc/shaders/ntsc-pass2-vertex.inc
2016-07-13 13:59:27 -05:00

10 lines
293 B
C++

#pragma stage vertex
layout(location = 0) in vec4 Position;
layout(location = 1) in vec2 TexCoord;
layout(location = 0) out vec2 vTexCoord;
void main()
{
gl_Position = global.MVP * Position;
vTexCoord = TexCoord - vec2(0.5 / global.SourceSize.x, 0.0); // Compensate for decimate-by-2.
}