GoogleChromeLabs / proxx

A game of proximity
https://proxx.app
Apache License 2.0
1.33k stars 125 forks source link

Fix ordering of clamp arguments #339

Closed TimvdLippe closed 5 years ago

TimvdLippe commented 5 years ago

Even though mix is defined as (x, y, a) 1, clamp is defined as (a, x, y) 2 where x is the lowerbound and y is the upperbound. This breaks on Linux, which enforces the WebGL argument ordering and is likely working on the other platforms where it patches the argument ordering on the fly.