Open gkjohnson opened 1 year ago
Demo:
https://jsfiddle.net/yekr50nz/5/
Notice the difference in edge brightness:
Browser Interpolation | Shader Interpolation Before sRGB |
---|---|
It seems that interpolating with the HDR linear colors, though, causes particularly bright pixels to bleed further than desired? Perhaps the best approach is to clamp the colors, interpolate, then render?
The browser will be linearly interpolating using sRGB data. It would be best to keep the canvas displaying at full scale and perform interpolation in shader before srgb adjust is applied.