Convert vertex colors from sRGB to linear RGB in mesh exporter
This commit is contained in:
parent
45eaab6a9d
commit
25a52ed407
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ if colors:
|
||||||
for i in range(len(vertex_colors)):
|
for i in range(len(vertex_colors)):
|
||||||
c = 0
|
c = 0
|
||||||
for k in (3, 2, 1, 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
|
vertex_colors[i] = c
|
||||||
|
|
||||||
if armature:
|
if armature:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue