2016-10-10 19:03:55 +00:00
|
|
|
|
|
|
|
in vec4 AttrPosition;
|
|
|
|
in vec4 AttrColor0;
|
|
|
|
in vec4 AttrColor1;
|
|
|
|
in vec4 AttrTexCoord0;
|
|
|
|
|
|
|
|
out vec4 PixelColor0;
|
|
|
|
out vec4 PixelColor1;
|
|
|
|
out vec4 PixelTexCoord0;
|
|
|
|
|
2016-10-11 08:27:18 +00:00
|
|
|
uniform vec4 ScreenSize;
|
|
|
|
|
2016-10-10 19:03:55 +00:00
|
|
|
void main()
|
|
|
|
{
|
2016-10-11 08:27:18 +00:00
|
|
|
gl_Position = vec4(AttrPosition.xy / ScreenSize.xy * 2.0 - 1.0, 1.0, 1.0);
|
2016-10-10 22:03:46 +00:00
|
|
|
gl_Position.y = -gl_Position.y;
|
|
|
|
PixelColor0 = AttrColor0.bgra;
|
|
|
|
PixelColor1 = AttrColor1.bgra;
|
2016-10-10 19:03:55 +00:00
|
|
|
PixelTexCoord0 = AttrTexCoord0;
|
|
|
|
}
|