2020-02-03 10:52:39 -08:00
|
|
|
#version 330
|
|
|
|
|
2020-02-05 14:45:42 -08:00
|
|
|
in vec3 point;
|
2020-02-03 10:52:39 -08:00
|
|
|
in vec4 color;
|
2020-02-07 09:31:57 -08:00
|
|
|
// fill_all is 0 or 1
|
|
|
|
in float fill_all;
|
|
|
|
// orientation is +1 for counterclockwise curves, -1 otherwise
|
|
|
|
in float orientation;
|
2020-02-03 10:52:39 -08:00
|
|
|
|
|
|
|
out vec2 bp; // Bezier control point
|
|
|
|
out vec4 v_color;
|
2020-02-07 09:31:57 -08:00
|
|
|
out float v_fill_all;
|
|
|
|
out float v_orientation;
|
2020-02-03 10:52:39 -08:00
|
|
|
|
|
|
|
|
|
|
|
void main(){
|
2020-02-05 14:45:42 -08:00
|
|
|
bp = point.xy; // TODO
|
2020-02-03 10:52:39 -08:00
|
|
|
v_color = color;
|
2020-02-07 09:31:57 -08:00
|
|
|
v_fill_all = fill_all;
|
|
|
|
v_orientation = orientation;
|
2020-02-03 10:52:39 -08:00
|
|
|
}
|