working on image-based relighting in relighting.c