mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:47:11 +02:00
Could extra comments.
This commit is contained in:
parent
1cbbcdaedc
commit
681bb60d03
1 changed files with 2 additions and 2 deletions
|
@ -1985,11 +1985,11 @@ int VoxelAugmentVisitor::visit(MetavoxelInfo& info) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// compute the pseudo-inverse, ataplus
|
// compute the pseudo-inverse, ataplus, and use to find the minimizing solution
|
||||||
glm::mat3 ataplus = glm::transpose(u) * d * u;
|
glm::mat3 ataplus = glm::transpose(u) * d * u;
|
||||||
|
|
||||||
glm::vec3 solution = (ataplus * atrans * b) + center;
|
glm::vec3 solution = (ataplus * atrans * b) + center;
|
||||||
|
|
||||||
|
// make sure it doesn't fall beyond the cell boundaries
|
||||||
center = glm::clamp(solution, 0.0f, 1.0f);
|
center = glm::clamp(solution, 0.0f, 1.0f);
|
||||||
|
|
||||||
if (totalWeight > 0.0f) {
|
if (totalWeight > 0.0f) {
|
||||||
|
|
Loading…
Reference in a new issue