mirror of
https://github.com/microsoft/UVAtlas
synced 2024-11-09 13:50:05 +00:00
Applied fix_gutter_bufer patch from cmesser
This commit is contained in:
parent
72390fff7f
commit
92ec63e7e3
@ -718,9 +718,14 @@ namespace
|
||||
VECTOR_ITEM(&aBorder[i - 1]->uv, TangentAxis))
|
||||
/ VECTOR_ITEM(&biasVector, TangentAxis);
|
||||
|
||||
/*
|
||||
// this calculation sometimes provides bad answers. Instead, just add fGutter * sqrt(2)
|
||||
fExtraDistance =
|
||||
fGutter * fabsf(XMVectorGetX(XMVector2Length(vBiasVector)) /
|
||||
VECTOR_ITEM(&biasVector, TangentAxis));
|
||||
VECTOR_ITEM(&biasVector, TangentAxis));
|
||||
*/
|
||||
|
||||
fExtraDistance = fGutter * 1.4143f; // multiply by worst-case of sqrt(2)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user