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
Hello, I've been using the colormap library in the three.js 3D renderer.
Starting with version 152, three.js applies an automatic gamma encoding on colors.
With this automatic encoding, the same scene using the viridis color ramp renders differently:
Before:
After:
My understanding is that now three.js applies gamma encoding (i.e converts from sRGB to linear) on the colormap colors because it expects them to be in the sRGB color space. Obviously this is not the case.
Does it mean that colors generated by colormap are already in linear space ?
The text was updated successfully, but these errors were encountered:
I won't be able to help you here unfortunately. But the library is very straightforward, it simply lerps color values between min and max colors. The way that sequence of colors is treated after (like gamma-correction, remapping or whatsoever) is out of scope of this library. So feel free to check the code and possibly post the solution here if you wish 🙏🏼
Hello, I've been using the
colormap
library in the three.js 3D renderer.Starting with version 152, three.js applies an automatic gamma encoding on colors.
With this automatic encoding, the same scene using the
viridis
color ramp renders differently:Before:

After:

My understanding is that now three.js applies gamma encoding (i.e converts from sRGB to linear) on the colormap colors because it expects them to be in the sRGB color space. Obviously this is not the case.
Does it mean that colors generated by
colormap
are already in linear space ?The text was updated successfully, but these errors were encountered: