From d7b29d3800382623e52d51044c82c97a571c30d2 Mon Sep 17 00:00:00 2001 From: leozide Date: Thu, 24 Aug 2017 16:51:45 -0700 Subject: [PATCH] Reduced normal welding angle to 60 degrees. --- common/lc_library.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lc_library.cpp b/common/lc_library.cpp index 6fc17a8c..0dccb165 100644 --- a/common/lc_library.cpp +++ b/common/lc_library.cpp @@ -2143,7 +2143,7 @@ lcuint32 lcLibraryMeshData::AddVertex(lcMeshDataType MeshDataType, const lcVecto Vertex.NormalWeight = 1.0f; return VertexIdx; } - else if (lcDot(Normal, Vertex.Normal) > 0.5f) + else if (lcDot(Normal, Vertex.Normal) > 0.707f) { Vertex.Normal = lcNormalize(Vertex.Normal * Vertex.NormalWeight + Normal); Vertex.NormalWeight += 1.0f; @@ -2203,7 +2203,7 @@ lcuint32 lcLibraryMeshData::AddTexturedVertex(lcMeshDataType MeshDataType, const Vertex.NormalWeight = 1.0f; return VertexIdx; } - else if (lcDot(Normal, Vertex.Normal) > 0.5f) + else if (lcDot(Normal, Vertex.Normal) > 0.707f) { Vertex.Normal = lcNormalize(Vertex.Normal * Vertex.NormalWeight + Normal); Vertex.NormalWeight += 1.0f;