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

uniform mat4 ModelViewProjectionMatrix;

#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 = ModelViewProjectionMatrix * vec4(position.xyz, 1.0f);
	texture_coord = texcoord;
}