|
|
|
|
|
by danwills
434 days ago
|
|
Quite right! I think if the values were linearized (~gamma 0.5) lerp might be mostly ok though, right? And what about doing rgb->hsv, then lerp, then hsv->rgb? I'm unclear whether that also needs linearization, or whether the gamma can maybe just be done to the 'v' component before lerping? Color is a surprisingly deep and fascinating topic, that's for sure! :) |
|
If you just want optical phenomena, you can just convert to luminescence -- WegGL and other modern graphics APIs actually does this internally when you load or render textures, so all shaders are handling optically-linear data, which is why the shader-produced images in the post look better than the javascript gradients.