baaahs / sparklemotion

Sparkle Motion
MIT License
40 stars 13 forks source link

Apply gamma correction on brain #533

Closed xian closed 1 year ago

xian commented 1 year ago

Applies gamma correction (2.2 power curve) to shader-rendered pixels.

xian commented 1 year ago

idf.py build currently fails with:

ld: esp-idf/led-renderer/libled-renderer.a(led-renderer.cpp.obj):(.literal._ZN11LEDRenderer6renderEv+0xc): undefined reference to `_ZN5Gamma9Correct22Ehmm'
ld: esp-idf/led-renderer/libled-renderer.a(led-renderer.cpp.obj): in function `_ZN11LEDRenderer6renderEv':
brain/sw/components/led-renderer/led-renderer.cpp:209: undefined reference to `_ZN5Gamma9Correct22Ehmm'
ld: brain/sw/components/led-renderer/led-renderer.cpp:210: undefined reference to `_ZN5Gamma9Correct22Ehmm'
ld: brain/sw/components/led-renderer/led-renderer.cpp:211: undefined reference to `_ZN5Gamma9Correct22Ehmm'
ld: esp-idf/brain-ui/libbrain-ui.a(brain-led.cpp.obj):(.literal._ZN8BrainLed8setValueEh+0x0): undefined reference to `_ZN5Gamma17Correct22NoDitherEh'
ld: esp-idf/brain-ui/libbrain-ui.a(brain-led.cpp.obj): in function `_ZN8BrainLed8setValueEh':
brain/sw/components/brain-ui/brain-led.cpp:33: undefined reference to `_ZN5Gamma17Correct22NoDitherEh'

Do I need to tell it to include Gamma.c?