3b1b-manim/manimlib/shaders/quadratic_bezier_fill/vert.glsl

23 lines
453 B
Text
Raw Normal View History

2020-02-03 10:52:39 -08:00
#version 330
#INSERT camera_uniform_declarations.glsl
2020-06-01 16:21:18 -07:00
in vec3 point;
in float orientation;
2020-02-03 10:52:39 -08:00
in vec4 color;
in float vert_index;
2020-02-03 10:52:39 -08:00
out vec3 bp; // Bezier control point
out float v_orientation;
2020-02-03 10:52:39 -08:00
out vec4 v_color;
2020-06-28 12:13:25 -07:00
out float v_vert_index;
2020-02-03 10:52:39 -08:00
// Analog of import for manim only
2020-06-01 16:21:18 -07:00
#INSERT position_point_into_frame.glsl
2020-02-03 10:52:39 -08:00
void main(){
2020-06-01 16:21:18 -07:00
bp = position_point_into_frame(point);
v_orientation = orientation;
2020-02-03 10:52:39 -08:00
v_color = color;
v_vert_index = vert_index;
2020-02-03 10:52:39 -08:00
}