mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Rename quadratic_bezier_geometry_functions to get_xy_to_uv
This commit is contained in:
parent
b31ad49850
commit
8175c2d408
3 changed files with 7 additions and 2 deletions
|
@ -60,6 +60,11 @@ mat3 map_point_pairs(vec2 src0, vec2 src1, vec2 dest0, vec2 dest1){
|
|||
|
||||
|
||||
mat3 get_xy_to_uv(vec2 controls[3], float temp_is_linear, out float is_linear){
|
||||
/*
|
||||
Returns a matrix for an affine transformation which maps a set of quadratic
|
||||
bezier controls points into a new coordinate system such that the bezier curve
|
||||
coincides with y = x^2
|
||||
*/
|
||||
vec2[2] dest;
|
||||
is_linear = temp_is_linear;
|
||||
if (!bool(is_linear)){
|
|
@ -37,7 +37,7 @@ const float ANGLE_THRESHOLD = 1e-3;
|
|||
|
||||
|
||||
// Analog of import for manim only
|
||||
#INSERT quadratic_bezier_geometry_functions.glsl
|
||||
#INSERT get_xy_to_uv.glsl
|
||||
#INSERT get_gl_Position.glsl
|
||||
#INSERT get_unit_normal.glsl
|
||||
#INSERT finalize_color.glsl
|
||||
|
|
|
@ -46,7 +46,7 @@ const float DISJOINT_CONST = 404.0;
|
|||
const float ANGLE_THRESHOLD = 1e-3;
|
||||
|
||||
|
||||
#INSERT quadratic_bezier_geometry_functions.glsl
|
||||
#INSERT get_xy_to_uv.glsl
|
||||
#INSERT get_gl_Position.glsl
|
||||
#INSERT get_unit_normal.glsl
|
||||
#INSERT finalize_color.glsl
|
||||
|
|
Loading…
Add table
Reference in a new issue