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

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

uniform mat4 gpModelMatrix;

in vec3 pos;
in vec4 color;
in float size;

out vec4 finalColor;
out float finalThickness;

void main()
{
  gl_Position = point_world_to_ndc((gpModelMatrix * vec4(pos, 1.0)).xyz);
  finalColor = color;
  finalThickness = size;
}