We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27fdca6 commit 7ab7057Copy full SHA for 7ab7057
src/SplatMesh.js
@@ -123,7 +123,7 @@ export class SplatMesh extends THREE.Mesh {
123
float traceOver2 = 0.5 * trace;
124
float term2 = sqrt(trace * trace / 4.0 - D);
125
float eigenValue1 = traceOver2 + term2;
126
- float eigenValue2 = max(traceOver2 - term2, 0.01);
+ float eigenValue2 = max(traceOver2 - term2, 0.00); // prevent negative eigen value
127
128
const float maxSplatSize = 1024.0;
129
vec2 eigenVector1 = normalize(vec2(b, eigenValue1 - a));
0 commit comments