move shaders into .glsl files and add #include feature

This commit is contained in:
2019-02-21 19:26:40 +01:00
parent 16eb9de358
commit eaab9c79e5
47 changed files with 1124 additions and 777 deletions

View File

@@ -0,0 +1,19 @@
[[vertex]]
uniform mat4 mvp;
in vec4 pos;
in vec4 col;
out vec4 c;
void main()
{
c = col;
gl_Position = mvp * pos;
gl_PointSize = 5.0;
};
[[fragment]]
in mediump vec4 c;
out mediump vec4 frag;
void main()
{
frag = c;
};