Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gpu_shader_3D_normal_vert.glsl « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 18fed69eff605f84292e723ebc15165546db8cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef USE_GPU_SHADER_CREATE_INFO
uniform mat4 ModelViewProjectionMatrix;
uniform mat3 NormalMatrix;

in vec3 pos;
in vec3 nor;
out vec3 normal;
#endif

void main()
{
  normal = normalize(NormalMatrix * nor);
  gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0);
}