prosperon/shaders/poly.cg

20 lines
231 B
Plaintext
Raw Normal View History

2024-05-30 17:12:54 -05:00
@vs vs
in vec3 a_pos;
uniform mat4 vp;
uniform mat4 model;
void main() {
gl_Position = vp * model * vec4(a_pos, 1);
}
@end
@fs fs
uniform vec4 shade;
out vec4 color;
void main() {
color = shade;
}
@end
@program sprite vs fs