Thank you for this great tip! But i really don't understand why it doesn't work for the other function... Confusing
I've updated the code above and you can remove the USE_STATIC_VALUES define if you want to use dynamic ones... (if you didn't already have rewritten the shader )