mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
Fix srgb_gen lookup table generation
This commit is contained in:
parent
2ee511bae0
commit
9b137570cf
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ for i in range(NUM_VALUES):
|
||||||
if s < 0.04045:
|
if s < 0.04045:
|
||||||
l = s / 12.92
|
l = s / 12.92
|
||||||
else:
|
else:
|
||||||
l = ((s + 0.044) / 1.055) ** 2.4
|
l = ((s + 0.055) / 1.055) ** 2.4
|
||||||
srgb_to_linear.append(l)
|
srgb_to_linear.append(l)
|
||||||
|
|
||||||
# Format and print
|
# Format and print
|
||||||
|
|
Loading…
Reference in a new issue