mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Added sample files for glsl.
This commit is contained in:
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