Strange bug with "Replace Color" effect (updated)

Bugs will be moved here once resolved.

Post » Wed May 06, 2015 8:43 pm

Is there a color replace plugin that doesn't use webgl?
B
74
S
19
G
9
Posts: 377
Reputation: 9,258

Post » Thu May 14, 2015 2:17 pm

It appears correctly here in all of Chrome, IE and Firefox on an nVidia GeForce GTX 660.

Inside shaders, color values are normalised to a float in the range [0, 1]. So the color values you are entering are really divided by 255 and rounded to a low-precision float to conserve memory bandwidth. My best guess is a driver, OS or browser component changed recently, and now something is rounding in a different direction, so it amounts to a rounding error. The workaround should be simple: just increase the tolerance to say 2 or 3, and it will still include close colors that have a small rounding error compared to what you are testing for.
Scirra Founder
B
399
S
236
G
89
Posts: 24,541
Reputation: 195,426

Previous

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests