mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Reduced normal welding angle to 60 degrees.
This commit is contained in:
parent
6ff8411366
commit
d7b29d3800
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue