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

paint_weight_vert.glsl « shaders « modes « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 78a3695c82c6571002927b359e6910df065b1b2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

uniform mat4 ModelViewProjectionMatrix;

in float weight;
in vec3 pos;

out vec2 weight_interp; /* (weight, alert) */

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

	/* Separate actual weight and alerts for independent interpolation */
	weight_interp = max(vec2(weight, -weight), 0.0);
}