gKit2 light
Toggle main menu visibility
Loading...
Searching...
No Matches
gkit2_tutos
tuto9_color.glsl
Go to the documentation of this file.
1
2
3
#version 330
4
5
#ifdef VERTEX_SHADER
6
layout(location= 0) in
vec3
position;
7
8
uniform mat4 mvpMatrix;
9
10
void
main( )
11
{
12
gl_Position= mvpMatrix *
vec4
(position, 1);
13
}
14
15
#endif
16
17
18
#ifdef FRAGMENT_SHADER
19
out
vec4
fragment_color;
20
21
uniform
vec4
color;
22
23
void
main( )
24
{
25
fragment_color= color;
26
}
27
28
#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