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

gpu_shader_2D_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: 6ba6f98040631870230edff93d2b2d6f78f790e6 (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 vec2 pos;
in float size;
in vec4 color;
out vec4 finalColor;
#endif

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