(texture, width, height)
| 1624 | } |
| 1625 | |
| 1626 | function getTextureScale (texture, width, height) { |
| 1627 | return { |
| 1628 | x: width / texture.width, |
| 1629 | y: height / texture.height |
| 1630 | }; |
| 1631 | } |
| 1632 | |
| 1633 | function scaleByPixelRatio (input) { |
| 1634 | let pixelRatio = window.devicePixelRatio || 1; |