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.
25 lines
316 B
Plaintext
25 lines
316 B
Plaintext
2 years ago
|
/* quad vertex shader */
|
||
|
@vs vs
|
||
|
in vec4 position;
|
||
|
in vec4 color0;
|
||
|
out vec4 color;
|
||
|
|
||
|
void main() {
|
||
|
gl_Position = position;
|
||
|
color = color0;
|
||
|
}
|
||
|
@end
|
||
|
|
||
|
/* quad fragment shader */
|
||
|
@fs fs
|
||
|
in vec4 color;
|
||
|
out vec4 frag_color;
|
||
|
|
||
|
void main() {
|
||
|
frag_color = color;
|
||
|
}
|
||
|
@end
|
||
|
|
||
|
/* quad shader program */
|
||
|
@program quad vs fs
|