mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-12 05:26:57 +03:00
Smooth normals in Lara
This commit is contained in:
parent
439db540e3
commit
34d39f653a
1 changed files with 2 additions and 7 deletions
|
@ -463,13 +463,8 @@ namespace T5M::Renderer {
|
||||||
|
|
||||||
if (abs(x1 - x2) < 2 && abs(y1 - y2) < 2 && abs(z1 - z2) < 2) {
|
if (abs(x1 - x2) < 2 && abs(y1 - y2) < 2 && abs(z1 - z2) < 2) {
|
||||||
jointVertex->Bone = BonesToCheck[k];
|
jointVertex->Bone = BonesToCheck[k];
|
||||||
jointVertex->Position.x = skinVertex->Position.x;
|
jointVertex->Position = skinVertex->Position;
|
||||||
jointVertex->Position.y = skinVertex->Position.y;
|
jointVertex->Normal = skinVertex->Normal;
|
||||||
jointVertex->Position.z = skinVertex->Position.z;
|
|
||||||
Vector3 n = (jointVertex->Normal + skinVertex->Normal) / 2.0f;
|
|
||||||
n.Normalize();
|
|
||||||
jointVertex->Normal = n;
|
|
||||||
skinVertex->Normal = n;
|
|
||||||
|
|
||||||
done = true;
|
done = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue