gKit2 light
Toggle main menu visibility
Loading...
Searching...
No Matches
gkit2_tutos
tuto10.glsl
1
2
#version 330
3
4
#ifdef VERTEX_SHADER
5
uniform mat4 mvpMatrix;
6
7
layout(location= 0) in
vec3
position;
8
9
void
main( )
10
{
11
gl_Position= mvpMatrix *
vec4
(position, 1);
12
}
13
14
#endif
15
16
17
#ifdef FRAGMENT_SHADER
18
19
out
vec4
fragment_color;
20
21
void
main( )
22
{
23
fragment_color=
vec4
(1, 0.4, 0, 1);
24
}
25
26
#endif
vec3
vecteur generique, utilitaire.
Definition
vec.h:169
vec4
vecteur generique 4d, ou 3d homogene, utilitaire.
Definition
vec.h:192
Generated on
for gKit2 light by
1.17.0