mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
revert changes which is in #1329
This commit is contained in:
parent
2d19ee8264
commit
c32104b7ca
2 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ float sdf(){
|
|||
float sgn = orientation * sign(v2);
|
||||
float Fp = (p.x * p.x - p.y);
|
||||
if(sgn * Fp < 0){
|
||||
return 0.0;
|
||||
return 0;
|
||||
}else{
|
||||
return min_dist_to_curve(uv_coords, uv_b2, bezier_degree);
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ void flatten_points(in vec3[3] points, out vec2[3] flat_points){
|
|||
float angle_between_vectors(vec2 v1, vec2 v2){
|
||||
float v1_norm = length(v1);
|
||||
float v2_norm = length(v2);
|
||||
if(v1_norm == 0 || v2_norm == 0) return 0.0;
|
||||
if(v1_norm == 0 || v2_norm == 0) return 0;
|
||||
float dp = dot(v1, v2) / (v1_norm * v2_norm);
|
||||
float angle = acos(clamp(dp, -1.0, 1.0));
|
||||
float sn = sign(cross2d(v1, v2));
|
||||
|
|
Loading…
Add table
Reference in a new issue