Merge branch 'master' into blender2.8
[blender.git] / source / blender / draw / engines / clay / shaders / clay_vert.glsl
1 uniform mat4 ModelViewProjectionMatrix;
2 uniform mat3 NormalMatrix;
3
4 in vec3 pos;
5 in vec3 nor;
6
7 #ifdef USE_FLAT_NORMAL
8 flat out vec3 normal;
9 #else
10 out vec3 normal;
11 #endif
12
13 void main()
14 {
15         normal = normalize(NormalMatrix * nor);
16         gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0);
17 }