slang-shaders/ntsc/shaders/maister/ntsc-pass2-vertex.inc

10 lines
293 B
PHP
Raw Normal View History

2016-07-13 14:38:02 +10:00
#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.
2016-07-14 04:59:27 +10:00
}