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: e74485bfa4fd513a84c38c008d9cf9ea0afc6823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#if __VERSION__ == 120
  attribute vec2 pos;
  attribute vec4 color;

  varying vec4 finalColor;
#else
  in vec2 pos;
  in vec4 color;

  noperspective out vec4 finalColor;
#endif

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