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

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

void main()
{
  finalColor = color;

  vec4 wPos = InstanceModelMatrix * vec4(pos * size, 1.0);
  gl_Position = ViewProjectionMatrix * wPos;

#ifdef USE_WORLD_CLIP_PLANES
  world_clip_planes_calc_clip_distance(wPos.xyz);
#endif
}