Skip to content

Commit

Permalink
Account for pixel ratio in point cloud shader
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Feb 24, 2024
1 parent 0b2e758 commit 6cc2676
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/viser/client/src/ThreeAssets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ export const PointCloud = React.forwardRef<
Math.PI) /
2.0,
)) *
getThreeState().gl.getSize(rendererSize).height;
getThreeState().gl.getSize(rendererSize).height *
getThreeState().gl.getPixelRatio();
});
return <points ref={ref} geometry={geometry} material={material} />;
});
Expand Down

0 comments on commit 6cc2676

Please sign in to comment.