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: b8d31f5540ab047aa73f7a75bbc7411c1df917e0 (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));
}