updated transfer function in shaders