Skip to content

Calculate tangents. #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

m-kostrzewa
Copy link

Calculate tangents when mesh is fractured. Addresses #10

NebulousMap.-.Battlespace.sceen.-.PC.Mac.Linux.Standalone.-.Unity.2020.3.19f1.Personal_._DX11_.2023-02-12.22-33-57.mp4

var tang13 = Vector4.Lerp(v2.tangent, v3.tangent, s13).normalized;
tang13.w = Mathf.Lerp(v2.tangent.w, v3.tangent.w, s13);
var tang23 = Vector4.Lerp(v2.tangent, v3.tangent, s23).normalized;
tang23.w = Mathf.Lerp(v2.tangent.w, v3.tangent.w, s23);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this is correct, I was inspired by http://answers.unity.com/comments/485110/view.html

@nnra6864
Copy link

You never, ever want to add .meta files to .gitignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants