s-log2 transfer function WIP

warning: broken