Rename quadratic_bezier_geometry_functions to get_xy_to_uv

This commit is contained in:
Grant Sanderson 2023-01-10 09:53:17 -08:00
parent b31ad49850
commit 8175c2d408
3 changed files with 7 additions and 2 deletions

View file

@ -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)){

View file

@ -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

View file

@ -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