github gpujs/gpu.js 2.18.3

latest releases: 2.19.2, 2.19.1, 2.19.0...
5 hours ago

Bug-fix release: correct Math.atan2 results on the GPU.

Fixed

  • Math.atan2(y, x) returned wrong quadrants on GPU backends (#647). The GLSL implementation used single-argument atan(y / x), which collapses the result into (-π/2, π/2) and is undefined at x = 0; it now uses two-argument atan(y, x) with explicit x = 0 handling, matching JavaScript's Math.atan2 across the full (-π, π] range. Thanks @ted-piotrowski for the fix (#683, merged at last).

Installing

npm install gpu.js@2.18.3
<script src="https://unpkg.com/gpu.js@2.18.3/dist/gpu-browser.min.js"></script>

Don't miss a new gpu.js release

NewReleases is sending notifications on new releases.