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

uniform mat4 ModelViewProjectionMatrix;

in vec2 pos;
in vec2 texCoord;
in vec4 color;
flat out vec4 color_flat;
noperspective out vec2 texCoord_interp;

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

	color_flat = color;
	texCoord_interp = texCoord;
}