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

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

/*
 * Vertex Shader for dashed lines with 3D coordinates, with uniform multi-colors or uniform single-color,
 * and unary thickness.
 *
 * Dashed is performed in screen space.
 */

uniform mat4 ModelViewProjectionMatrix;

uniform vec4 color;

in vec3 pos;

out vec4 color_vert;

void main()
{
	gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0);
	color_vert = color;
}