You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
365 B
Plaintext

2 years ago
/* quad vertex shader */
@vs vs
2 years ago
in vec2 position;
in vec2 texcoord0;
out vec2 uv;
2 years ago
void main() {
2 years ago
gl_Position = vec4(position, 0.0, 1.0);
uv = texcoord0;
2 years ago
}
@end
/* quad fragment shader */
@fs fs
2 years ago
uniform sampler2D tex;
in vec2 uv;
2 years ago
out vec4 frag_color;
2 years ago
2 years ago
void main() {
2 years ago
frag_color = texture(tex, uv);
2 years ago
}
@end
/* quad shader program */
@program quad vs fs