[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-01-04 02:51:40 +00:00
commit eda8bb0e06
10 changed files with 9 additions and 11 deletions

View file

@ -3,4 +3,4 @@ uniform vec2 pixel_shape;
uniform vec3 camera_offset;
uniform mat3 camera_rotation;
uniform float is_fixed_in_frame;
uniform float focal_distance;
uniform float focal_distance;

View file

@ -16,4 +16,4 @@ vec2 complex_pow(vec2 z, int n)
result = complex_mult(result, z);
}
return result;
}
}

View file

@ -50,4 +50,4 @@ vec4 finalize_color(vec4 color, vec3 point, vec3 unit_normal, vec3 light_coords,
// The line above may be replaced by arbitrary code snippets, as per
// the method Mobject.set_color_by_code
return add_light(color, point, unit_normal, light_coords, cam_coords, reflectiveness, gloss, shadow);
}
}

View file

@ -33,4 +33,4 @@ vec4 get_gl_Position(vec3 point)
}
result.z *= -1;
return result;
}
}

View file

@ -12,4 +12,4 @@ vec3 get_rotated_surface_unit_normal_vector(vec3 point, vec3 du_point, vec3 dv_p
cp = cross(cross(v2, point), v2);
}
return normalize(rotate_point_into_frame(cp));
}
}

View file

@ -22,4 +22,4 @@ vec3 get_unit_normal(in vec3[3] points)
return new_cp / new_cp_norm;
}
return cp / cp_norm;
}
}

View file

@ -107,4 +107,4 @@ float min_dist_to_curve(vec2 p, vec2 b2, float degree)
return d0;
float d1 = dist_to_point_on_curve(p, roots[1], b2);
return min(d0, d1);
}
}

View file

@ -77,4 +77,4 @@ float get_reduced_control_points(in vec3 points[3], out vec3 new_points[3])
new_points[2] = p0;
return 0.0;
}
}
}

View file

@ -275,4 +275,4 @@ void main() {
EmitVertex();
}
EndPrimitive();
}
}

View file

@ -9,10 +9,8 @@ from collections import OrderedDict
from typing import TYPE_CHECKING
import numpy as np
from IPython.terminal import pt_inputhooks
from IPython.terminal.embed import InteractiveShellEmbed
from pyglet.window import key
from tqdm import tqdm as ProgressDisplay