Skip to content

Commit

Permalink
Fix Intel Mac edge case for point_shape="square" (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi authored Apr 14, 2024
1 parent 0916cb2 commit 1d93a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viser/client/src/ThreeAssets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const PointCloudMaterial = /* @__PURE__ */ shaderMaterial(
uniform float point_ball_norm;
void main() {
if (!isinf(point_ball_norm)) {
if (point_ball_norm < 1000.0) {
float r = pow(
pow(abs(gl_PointCoord.x - 0.5), point_ball_norm)
+ pow(abs(gl_PointCoord.y - 0.5), point_ball_norm),
Expand Down

0 comments on commit 1d93a16

Please sign in to comment.