23 lines
232 B
GLSL
23 lines
232 B
GLSL
@vs vs
|
|
in vec4 pos;
|
|
in vec4 color0;
|
|
|
|
out vec4 color;
|
|
|
|
void main() {
|
|
gl_Position = pos;
|
|
color = color0;
|
|
}
|
|
@end
|
|
|
|
@fs fs
|
|
in vec4 color;
|
|
out vec4 frag_color;
|
|
|
|
void main() {
|
|
frag_color = color;
|
|
}
|
|
@end
|
|
|
|
@program simple vs fs
|
|
|