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.

29 lines
345 B
GLSL

@module threedee
@vs vs
in vec3 position;
out vec3 pos;
uniform vs_params {
mat4 model;
mat4 view;
mat4 projection;
};
void main() {
pos = position;
gl_Position = projection * view * model * vec4(position, 1.0);
}
@end
@fs fs
in vec3 pos;
out vec4 frag_color;
void main() {
frag_color = vec4(pos, 1.0);
}
@end
@program program vs fs