mirror of
https://github.com/3b1b/manim.git
synced 2025-11-13 19:57:48 +00:00
Reduce is_linear threshold
This commit is contained in:
parent
b7ea24f9ea
commit
6c262f63b1
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ const int MITER_JOINT = 3;
|
|||
// When the cosine of the angle between
|
||||
// two vectors is larger than this, we
|
||||
// consider them aligned
|
||||
const float COS_THRESHOLD = 0.999;
|
||||
const float COS_THRESHOLD = 0.99;
|
||||
|
||||
vec3 unit_normal = vec3(0.0, 0.0, 1.0);
|
||||
|
||||
|
|
@ -179,7 +179,7 @@ void main() {
|
|||
if(!bool(is_linear)){
|
||||
bool too_steep;
|
||||
xyz_to_uv = get_xyz_to_uv(p0, p1, p2, 2.0, too_steep);
|
||||
if(too_steep) is_linear = 1.0;
|
||||
is_linear = float(too_steep);
|
||||
uv_scale_factor = length(xyz_to_uv[0].xyz);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue