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
72
S
18
G
9
Posts: 376
Reputation: 9,106

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
395
S
233
G
88
Posts: 24,376
Reputation: 193,842

Previous

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 11 guests