mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 18:11:13 +00:00
Properly calculate binormal when creating SurfaceTool from arrays
(cherry picked from commit f267b2aa87)
This commit is contained in:
parent
4142e57082
commit
a61a84ff09
2 changed files with 4 additions and 4 deletions
|
|
@ -339,7 +339,7 @@ void _get_axis_angle(const Vector3 &p_normal, const Vector4 &p_tangent, float &r
|
|||
if (d < 0.0) {
|
||||
r_angle = CLAMP((1.0 - r_angle / Math_PI) * 0.5, 0.0, 0.49999);
|
||||
} else {
|
||||
r_angle = (r_angle / Math_PI) * 0.5 + 0.5;
|
||||
r_angle = CLAMP((r_angle / Math_PI) * 0.5 + 0.5, 0.500008, 1.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue