2023-09-15 12:31:31 -05:00
|
|
|
@vs polyvs
|
2023-05-13 22:01:53 -05:00
|
|
|
in vec2 apos;
|
2023-09-15 12:31:31 -05:00
|
|
|
in vec2 vuv;
|
2023-05-16 01:31:13 -05:00
|
|
|
in vec4 acolor;
|
2023-05-13 22:01:53 -05:00
|
|
|
|
2023-05-16 01:31:13 -05:00
|
|
|
out vec4 color;
|
2023-05-13 22:01:53 -05:00
|
|
|
out vec2 uv;
|
|
|
|
|
2023-09-15 12:31:31 -05:00
|
|
|
uniform polyvs_params { mat4 proj; };
|
2023-05-13 22:01:53 -05:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
color = acolor;
|
2023-09-15 12:31:31 -05:00
|
|
|
uv = vuv;
|
|
|
|
gl_Position = proj * vec4(apos, 0.0, 1.0);
|
2023-05-13 22:01:53 -05:00
|
|
|
}
|
2023-09-15 03:37:07 -05:00
|
|
|
@end
|
|
|
|
|
2023-09-15 12:31:31 -05:00
|
|
|
@fs polyfs
|
2023-09-15 03:37:07 -05:00
|
|
|
in vec4 color;
|
|
|
|
in vec2 uv;
|
|
|
|
out vec4 fcolor;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
fcolor = color;
|
2023-09-15 12:31:31 -05:00
|
|
|
fcolor.x *= (1 + uv.x/100.0); /* Temp dbg fix so vuv compiles */
|
2023-09-15 03:37:07 -05:00
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
2023-09-15 12:31:31 -05:00
|
|
|
@program poly polyvs polyfs
|