Convert vertex colors from sRGB to linear RGB in mesh exporter

This commit is contained in:
Nikita Lisitsa 2021-07-19 12:48:07 +03:00
parent 45eaab6a9d
commit 25a52ed407

View file

@ -153,7 +153,7 @@ if colors:
for i in range(len(vertex_colors)):
c = 0
for k in (3, 2, 1, 0):
c = (c << 8) | int(max(0, min(255, vertex_colors[i][k] * 255)))
c = (c << 8) | int(max(0, min(255, pow(vertex_colors[i][k], 2.2) * 255)))
vertex_colors[i] = c
if armature: