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

gpu_shader_instance_vert.glsl « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 803dc4b3bcf5d0c2acaa999400761fd38d805556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

uniform mat4 ViewProjectionMatrix;

/* ---- Instantiated Attrs ---- */
in vec3 pos;

/* ---- Per instance Attrs ---- */
in mat4 InstanceModelMatrix;

void main()
{
	gl_Position = ViewProjectionMatrix * InstanceModelMatrix * vec4(pos, 1.0);
}