forked from bartvdbraak/blender
Fix #35611: 'Quick Edit' in Texture mode + RGBA16bit gives bright results
Was missing linearization of colro came from byte buffer.
This commit is contained in:
parent
05ffe37df4
commit
b2c81664ae
@ -3794,6 +3794,7 @@ static void *do_projectpaint_thread(void *ph_v)
|
|||||||
float mask = ((float)projPixel->mask) * (1.0f / 65535.0f);
|
float mask = ((float)projPixel->mask) * (1.0f / 65535.0f);
|
||||||
|
|
||||||
straight_uchar_to_premul_float(newColor_f, projPixel->newColor.ch);
|
straight_uchar_to_premul_float(newColor_f, projPixel->newColor.ch);
|
||||||
|
IMB_colormanagement_colorspace_to_scene_linear_v4(newColor_f, TRUE, ps->reproject_ibuf->rect_colorspace);
|
||||||
mul_v4_v4fl(newColor_f, newColor_f, mask);
|
mul_v4_v4fl(newColor_f, newColor_f, mask);
|
||||||
|
|
||||||
blend_color_mix_float(projPixel->pixel.f_pt, projPixel->origColor.f,
|
blend_color_mix_float(projPixel->pixel.f_pt, projPixel->origColor.f,
|
||||||
|
Loading…
Reference in New Issue
Block a user