From 34d39f653a80df7f0466c9be3cc054a345ad493f Mon Sep 17 00:00:00 2001 From: Montagna Marco Date: Fri, 3 Jul 2020 07:13:46 +0200 Subject: [PATCH] Smooth normals in Lara --- TR5Main/Renderer/Renderer11Compatibility.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/TR5Main/Renderer/Renderer11Compatibility.cpp b/TR5Main/Renderer/Renderer11Compatibility.cpp index 3e9735070..d8cd2cd2a 100644 --- a/TR5Main/Renderer/Renderer11Compatibility.cpp +++ b/TR5Main/Renderer/Renderer11Compatibility.cpp @@ -463,13 +463,8 @@ namespace T5M::Renderer { if (abs(x1 - x2) < 2 && abs(y1 - y2) < 2 && abs(z1 - z2) < 2) { jointVertex->Bone = BonesToCheck[k]; - jointVertex->Position.x = skinVertex->Position.x; - jointVertex->Position.y = skinVertex->Position.y; - jointVertex->Position.z = skinVertex->Position.z; - Vector3 n = (jointVertex->Normal + skinVertex->Normal) / 2.0f; - n.Normalize(); - jointVertex->Normal = n; - skinVertex->Normal = n; + jointVertex->Position = skinVertex->Position; + jointVertex->Normal = skinVertex->Normal; done = true; break;