mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-29 23:23:07 +00:00
18 lines
385 B
Text
18 lines
385 B
Text
|
|
in vec4 AttrPosition;
|
|
in vec4 AttrColor0;
|
|
in vec4 AttrColor1;
|
|
in vec4 AttrTexCoord0;
|
|
|
|
out vec4 PixelColor0;
|
|
out vec4 PixelColor1;
|
|
out vec4 PixelTexCoord0;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = vec4(AttrPosition.xy / vec2(1920*2,1080*2) * 2.0 - 1.0, 1.0, 1.0);
|
|
gl_Position.y = -gl_Position.y;
|
|
PixelColor0 = AttrColor0.bgra;
|
|
PixelColor1 = AttrColor1.bgra;
|
|
PixelTexCoord0 = AttrTexCoord0;
|
|
}
|