I don't know if this is helpful, but maybe you could find a solution at Shader Tech Forums?