diff --git a/src/components/graph/drawPointsRegl.js b/src/components/graph/drawPointsRegl.js index 03cb2d86..f9dacee5 100644 --- a/src/components/graph/drawPointsRegl.js +++ b/src/components/graph/drawPointsRegl.js @@ -33,11 +33,15 @@ export default function (regl) { uniforms: { distance: regl.prop('distance'), view: regl.prop('view'), - projection: (context, props) => - mat4.perspective([], + projection: (context, props) => { + return mat4.perspective( + [], Math.PI / 2, context.viewportWidth * props.scale / context.viewportHeight, - 0.01, 1000), + 0.01, + 1000 + ) + }, }, count: regl.prop('count'),