You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting a high sample number (in practice > 17000), the precision error will be noticeable:
We’re already using highp float, but it would be great to reduce the precision error even more by optimizing the computation steps as much as possible.
An alternative way is to introduce some deterministic randomness to the sampling here.
Activity
shuding commentedon Dec 12, 2021
https://twitter.com/shuding_/status/1470068674560155650 :)
shuding commentedon Dec 12, 2021
The fix here, is by changing the calculation of the theta in a Fibonacci sample point (https://observablehq.com/@mbostock/spherical-fibonacci-lattice) from:
i / Φ * 2π2π:i / Φ * 2π % 2π1:i / Φ % 1 * 2πfloor:(i / Φ - 3000 * floor(i / Φ / 3000)) * 2πTo reduce the precision loss caused by
sinandmod.