mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Fix a type error when gamma linearization == 0
This commit is contained in:
parent
9f2bc49009
commit
9a8e57cbc6
@ -319,7 +319,7 @@ class _AnimRenderer(object):
|
||||
vib = f(vib / n)
|
||||
hipow = f(cen_cp.highlight_power)
|
||||
lin = f(cen_cp.gam_lin_thresh)
|
||||
lingam = f(math.pow(cen_cp.gam_lin_thresh, gam-1.0)) if lin > 0 else 0
|
||||
lingam = f(math.pow(cen_cp.gam_lin_thresh, gam-1.0) if lin > 0 else 0)
|
||||
print gam, vib, lin, lingam, cen_cp.gamma
|
||||
|
||||
# TODO: get block size from colorclip class? It actually does not
|
||||
|
Loading…
Reference in New Issue
Block a user