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

clay_vert.glsl « shaders « clay « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 557445d5ef9004fad1a91bf6a178858d0c4aa40c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}