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

gpu_shader_3D_point_varying_size_varying_color_vert.glsl « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f048e143da78f09340300ed339b6e47bf7ba5fcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef USE_GPU_SHADER_CREATE_INFO
uniform mat4 ModelViewProjectionMatrix;

in vec3 pos;
in float size;
in vec4 color;
out vec4 finalColor;
#endif

void main()
{
  gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0);
  gl_PointSize = size;
  finalColor = color;
}