Skip to content

Commit

Permalink
Use indexed rendering for gplats (#6204)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky authored Mar 26, 2024
1 parent 7b8338d commit 34ecb68
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/scene/gsplat/gsplat-instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ class GSplatInstance {
});
} else {
this.mesh = new Mesh(device);
this.mesh.setPositions(new Float32Array([
-1, -1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1
]), 2);
this.mesh.setPositions(new Float32Array([-1, -1, 1, -1, 1, 1, -1, 1]), 2);
this.mesh.setIndices([0, 1, 2, 0, 2, 3]);
this.mesh.update();
}

Expand Down

0 comments on commit 34ecb68

Please sign in to comment.