Skip to content

Commit 4e58015

Browse files
1 parent 8f76bd9 commit 4e58015

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/dev/core/src/Meshes/GaussianSplatting/gaussianSplattingMesh.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,6 +1325,7 @@ export class GaussianSplattingMesh extends Mesh {
13251325
(uBuffer[32 * index + 28 + 3] - 127.5) / 127.5,
13261326
-(uBuffer[32 * index + 28 + 0] - 127.5) / 127.5
13271327
);
1328+
quaternion.normalize();
13281329
quaternion.toRotationMatrix(matrixRotation);
13291330

13301331
Matrix.ScalingToRef(fBuffer[8 * index + 3 + 0] * 2, fBuffer[8 * index + 3 + 1] * 2, fBuffer[8 * index + 3 + 2] * 2, matrixScale);

0 commit comments

Comments
 (0)