fix: reset canvas transformation to not accumulate error on non-zero dPR

fix_canvas_transform
dwelle 4 years ago
parent 0749d2c1f3
commit add75b8c93

@ -207,6 +207,7 @@ export const renderScene = (
const context = canvas.getContext("2d")!;
context.resetTransform();
context.scale(scale, scale);
// When doing calculations based on canvas width we should used normalized one

Loading…
Cancel
Save