gKit2 light
Toggle main menu visibility
Loading...
Searching...
No Matches
gkit2_tutos
draw_decal.glsl
1
2
#version 330
3
4
#ifdef VERTEX_SHADER
5
layout(location= 0) in
vec3
position;
6
layout(location= 2) in
vec3
normal;
7
8
uniform mat4 mvpMatrix;
9
10
void
main( )
11
{
12
gl_Position= mvpMatrix *
vec4
(position, 1);
13
}
14
#endif
15
16
#ifdef FRAGMENT_SHADER
17
out
vec4
fragment_color;
18
19
void
main( )
20
{
21
fragment_color=
vec4
(0,0,0, 1);
// dessine l'objet en noir
22
}
23
#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