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

13 lines
353 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;
2016-07-14 04:59:27 +10:00
layout(location = 1) out vec2 pix_no;
2016-07-13 14:38:02 +10:00
void main()
{
gl_Position = global.MVP * Position;
vTexCoord = TexCoord;
2016-07-14 04:59:27 +10:00
pix_no = TexCoord * global.SourceSize.xy * (global.OutputSize.xy / global.SourceSize.xy);
2016-07-13 14:38:02 +10:00
}