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

gpu_shader_2D_texture_vert.glsl « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d4d36def8cd7dbf41cf08d83d1277ad8da6d3cd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#if __VERSION__ == 120
  attribute vec2 texcoord;
  attribute vec3 position;
  varying vec2 texture_coord;
#else
  in vec2 texcoord;
  in vec3 position;
  out vec2 texture_coord;
#endif


void main()
{
	gl_Position = gl_ModelViewProjectionMatrix * vec4(position.xyz, 1.0f);
	texture_coord = texcoord;
}