slang-shaders/ntsc/shaders/maister/ntsc-pass2-vertex.inc
2022-09-24 09:00:43 -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.
}