Fix vertex color baking using wrong color space
Now light baking should match the render.
This commit is contained in:
parent
e845467d93
commit
5d6e5a9076
Notes:
blender-bot
2023-02-14 10:11:49 +01:00
Referenced by issue #84562, Cycles Bake Vertex Color uses experimental Sculpt Vertex Color values
|
@ -1062,10 +1062,10 @@ static bool bake_targets_output_vertex_colors(BakeTargets *targets, Object *ob)
|
|||
bake_result_to_rgba(rgba, &result[mloop->v * num_channels], num_channels);
|
||||
|
||||
if (is_noncolor) {
|
||||
linearrgb_to_srgb_uchar4(&mloopcol->r, rgba);
|
||||
unit_float_to_uchar_clamp_v4(&mloopcol->r, rgba);
|
||||
}
|
||||
else {
|
||||
unit_float_to_uchar_clamp_v4(&mloopcol->r, rgba);
|
||||
linearrgb_to_srgb_uchar4(&mloopcol->r, rgba);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue