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

gpu_shader_text_vert.glsl « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 44568f28c8e00e878f1fdeb06d8022687c7960e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

uniform mat4 ModelViewProjectionMatrix;

#if __VERSION__ == 120
  attribute vec2 pos;
  attribute vec2 texCoord;
  attribute vec4 color;
  flat varying vec4 color_flat;
  noperspective varying vec2 texCoord_interp;
#else
  in vec2 pos;
  in vec2 texCoord;
  in vec4 color;
  flat out vec4 color_flat;
  noperspective out vec2 texCoord_interp;
#endif

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

	color_flat = color;
	texCoord_interp = texCoord;
}