diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 4871c0f4..47a04fef 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -735,12 +735,14 @@ GLSL: - .glsl - .fp - .frag + - .frg - .fshader - .geom - .glslv - .gshader - .shader - .vert + - .vrx - .vshader Genshi: diff --git a/samples/GLSL/myfragment.frg b/samples/GLSL/myfragment.frg new file mode 100644 index 00000000..a4e84395 --- /dev/null +++ b/samples/GLSL/myfragment.frg @@ -0,0 +1,6 @@ +varying vec4 v_color; + +void main() +{ + gl_FragColor = v_color; +} \ No newline at end of file diff --git a/samples/GLSL/myvertex.vrx b/samples/GLSL/myvertex.vrx new file mode 100644 index 00000000..5371affa --- /dev/null +++ b/samples/GLSL/myvertex.vrx @@ -0,0 +1,12 @@ +uniform mat4 u_MVPMatrix; + +attribute vec4 a_position; +attribute vec4 a_color; + +varying vec4 v_color; + +void main() +{ + v_color = a_color; + gl_Position = u_MVPMatrix * pos; +} \ No newline at end of file