MCPcopy Index your code
hub / github.com/PavelDoGreat/WebGL-Fluid-Simulation / getTextureScale

Function getTextureScale

script.js:1626–1631  ·  view source on GitHub ↗
(texture, width, height)

Source from the content-addressed store, hash-verified

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

Callers 1

drawDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected