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

gpu_shader_display_transform_vertex.glsl « opencolorio « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a6c00b080b2824e5b1ac71a57a33e9ed4b388ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

uniform mat4 ModelViewProjectionMatrix;

#if __VERSION__ == 120
  attribute vec2 texCoord;
  attribute vec2 pos;
  varying vec2 texCoord_interp;
#else
  in vec2 texCoord;
  in vec2 pos;
  out vec2 texCoord_interp;
#endif

void main()
{
    gl_Position = ModelViewProjectionMatrix * vec4(pos.xy, 0.0f, 1.0f);
    texCoord_interp = texCoord;
}