Skip to content

Comments

Calculate tangents.#11

Open
m-kostrzewa wants to merge 1 commit intodgreenheck:mainfrom
m-kostrzewa:tangents
Open

Calculate tangents.#11
m-kostrzewa wants to merge 1 commit intodgreenheck:mainfrom
m-kostrzewa:tangents

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