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: a3f447a85f9da6e8aee8228bcc5922bcdbfb2a49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

uniform mat4 ModelViewProjectionMatrix;
uniform mat3 NormalMatrix;

in vec3 pos;
in vec3 nor;
out vec3 normal;

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