mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Merge pull request #1311 from maximusvladimir/master
Added 3 character glsl extensions.
This commit is contained in:
@@ -735,12 +735,14 @@ GLSL:
|
||||
- .glsl
|
||||
- .fp
|
||||
- .frag
|
||||
- .frg
|
||||
- .fshader
|
||||
- .geom
|
||||
- .glslv
|
||||
- .gshader
|
||||
- .shader
|
||||
- .vert
|
||||
- .vrx
|
||||
- .vshader
|
||||
|
||||
Genshi:
|
||||
|
||||
6
samples/GLSL/myfragment.frg
Normal file
6
samples/GLSL/myfragment.frg
Normal file
@@ -0,0 +1,6 @@
|
||||
varying vec4 v_color;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = v_color;
|
||||
}
|
||||
12
samples/GLSL/myvertex.vrx
Normal file
12
samples/GLSL/myvertex.vrx
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user