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

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

in vec2 pos;
in vec4 color;

noperspective out vec4 finalColor;
#endif

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