Skip to content

Commit

Permalink
Fix runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Apr 18, 2024
1 parent a6797fd commit f45152a
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/viser/client/src/Splatting/GaussianSplats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,20 +163,6 @@ export default function GaussianSplats({
geometry.setAttribute("covA", covAAttribute);
geometry.setAttribute("covB", covBAttribute);

// Populate material with custom shaders.
// const material = new GaussianSplatMaterial();
// const material = new THREE.RawShaderMaterial({
// fragmentShader: fragmentShaderSource,
// vertexShader: vertexShaderSource,
// uniforms: {
// viewport: { value: null },
// focal: { value: null },
// },
// depthTest: true,
// depthWrite: false,
// transparent: true,
// });

// Update component tate.
setGeometry(geometry);
setMaterial(new GaussianSplatMaterial());
Expand Down Expand Up @@ -210,7 +196,7 @@ export default function GaussianSplats({

return () => {
geometry.dispose();
material!.dispose();
if (material !== undefined) material.dispose();
sortWorker.postMessage({ close: true });
};
}, [buffers]);
Expand Down

0 comments on commit f45152a

Please sign in to comment.